[Zope-dev] SVN: Zope/trunk/ Replaced failUnless with assertTrue and failIf with assertFalse in tests.
Hanno Schlichting
hanno at hannosch.eu
Sun Aug 8 18:08:25 EDT 2010
On Mon, Aug 9, 2010 at 12:00 AM, Tres Seaver <tseaver at palladion.com> wrote:
> Hanno Schlichting wrote:
>> Log message for revision 115555:
>> Replaced failUnless with assertTrue and failIf with assertFalse in tests.
>
> Hmm, I don't like the way 'asseertTrue' and 'assertFalse' read -- is
> there a particular rationale for this change beyond personal taste?
The fail* methods are deprecated in Python 2.7's unittest module.
Following the "there should only be one way" rule, I guess.
More details at
http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations
Hanno
More information about the Zope-Dev
mailing list