Re: SVN: Zope/trunk/ Replaced failUnless with assertTrue and failIf with assertFalse in tests.
Hanno Schlichting <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 9, 2010 at 12:00 AM, Tres Seaver <[email protected]> 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 _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )