[Zope-dev] zope.testing.doctestunit and BBB

Christian Theune ct at gocept.com
Wed Dec 23 04:25:42 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On 12/21/2009 10:27 PM, Lennart Regebro wrote:
| On Mon, Dec 21, 2009 at 22:23, Marius Gedminas<marius at gedmin.as>  wrote:
|> On Mon, Dec 21, 2009 at 07:41:24PM +0100, Lennart Regebro wrote:
|>> On Mon, Dec 21, 2009 at 13:20, Marius Gedminas<marius at gedmin.as>  wrote:
|>>> Can you please make it a PendingDeprecationWarning first?
|>>
|>> Yeah, I guess, but why?
|>
|> Because I hate it when my code emits DeprecationWarnings, and I wasn't
|> sure I could throw a switch and migrate to stdlib's doctest.py today
|> without extensive tests/preparation.
|>
|> Key word being "wasn't".
|>
|> I migrated my codebase to use stdlib's doctest.py today, and nothing
|> broke, to my surprise.  Even coverage support continues to work fine (at
|> some point just having 'import doctest' could make bin/test --coverage
|> forget about half the code it's seen).
|>
|> So, I'm fine with a DeprecationWarning.
|
| Good to hear. I thought they should work, the differences are mostly
| in output formatting and such.
|
| I added the imports back, and also some deprecation warnings, although
| I'm not sure how to best add them, so I just stuck them in the
| modules, so the first import will raise a warning. A new release would
| be great, I guess. Christian, what do you say?

I'm sorry, I was out of the loop for a while.

Is this about getting rid of our own doctest and relying on Python's
standard doctest module?

Christian

- -- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksx4hYACgkQdUt9X/gknwLqTwCgnCVClMa+I6DjeBa5Baqf/Foo
JFEAn2rsUrEp+etmeOZHnIyCGPa2I91i
=Jw/h
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3830 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20091223/50a5ee10/attachment.bin 


More information about the Zope-Dev mailing list