fix test_unittest

This commit is contained in:
Benjamin Peterson 2009-04-04 16:39:09 +00:00
parent ab96741612
commit 4f75b64399
1 changed files with 2 additions and 2 deletions

View File

@ -2608,11 +2608,11 @@ test case
def testAssertNotRaisesRegexp(self):
self.assertRaisesRegexp(
self.failureException, '^Exception not raised$',
self.failureException, '^Exception not raised by <lambda>$',
self.assertRaisesRegexp, Exception, re.compile('x'),
lambda: None)
self.assertRaisesRegexp(
self.failureException, '^Exception not raised$',
self.failureException, '^Exception not raised by <lambda>$',
self.assertRaisesRegexp, Exception, 'x',
lambda: None)