8 Dec
2008
8 Dec
'08
6:40 p.m.
On Mon, Dec 8, 2008 at 12:26 PM, Tres Seaver <tseaver@palladion.com> wrote:
A better fix would be to strip outthe 'assert' keyword everywhere, and use 'self.failUnless' / 'self.failIf' instead: that would allow getting rid of the "backsplash", as well.
Yep. Another reason not to use "assert" in tests is that if the tests are run with Python's -O or -OO switches, the asserts will be optimized away. -- Benji York Senior Software Engineer Zope Corporation