[Zope3-dev] test failures w/ -O
Jeremy Hylton
jeremy@zope.com
Thu, 6 Jun 2002 19:21:59 -0400
======================================================================
FAIL: testClassicClass (Zope.ContextWrapper.tests.testSimpleMethodWrapper.SimpleMethodWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/jeremy/src/Zope3/lib/python/Zope/ContextWrapper/tests/testSimpleMethodWrapper.py", line 71, in testClassicClass
self.assertRaises(AssertionError, classic.thisIsAContextMethod)
File "/usr/local/lib/python2.3/unittest.py", line 279, in failUnlessRaises
raise self.failureException, excName
AssertionError: AssertionError
======================================================================
FAIL: testNewStyleClass (Zope.ContextWrapper.tests.testSimpleMethodWrapper.SimpleMethodWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/jeremy/src/Zope3/lib/python/Zope/ContextWrapper/tests/testSimpleMethodWrapper.py", line 63, in testNewStyleClass
self.assertRaises(AssertionError, newstyle.thisIsAContextMethod)
File "/usr/local/lib/python2.3/unittest.py", line 279, in failUnlessRaises
raise self.failureException, excName
AssertionError: AssertionError
----------------------------------------------------------------------
It looks like these tests are shallow, in that assert statements are
disabled when Python is run with -O. But the tests should be fixed to
work properly regardless.
Jeremy