[soc2008-general] unit testing the standard library

Titus Brown titus at caltech.edu
Tue Mar 25 23:41:09 CET 2008


On Tue, Mar 25, 2008 at 11:44:08PM +0100, Christian Heimes wrote:
-> Titus Brown schrieb:
-> > ick.  Pollutes namespace for no visible gain.  What's wrong with "assert
-> > var in sequence"?? :)
-> 
-> It does neither show "var" nor "sequence" when the assertion fails. It
-> lessens the pain of debugging unit tests when the tester sees the
-> expected values.

I believe this is handled by introspection in py.test, actually, and
could also be done that way in nose.  I could be wrong, though, I
haven't looked into it.

cheers,
--titus


More information about the soc2008-general mailing list