[Zope-Coders] -O considered useful

Barry A. Warsaw barry@zope.com
Tue, 23 Oct 2001 14:12:52 -0400


>>>>> "JH" == Jeremy Hylton <jeremy@zope.com> writes:

    JH> We should fix our tests to use the assertXXX methods, like
    JH> assertEqual instead of using assert statements.  Note that
    JH> assertEqual also produces a better default error message than
    JH> assert x == y.

+2 :)

Actually, it was the better error messages that tipped the scales for
me, and I've since converted all the Berkeley storage tests.  I do
sort of wish that some of the other unittest assertions
(e.g. failUnless()) had better error message like failUnlessEqual().

-Barry