mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
fix test_unittest
This commit is contained in:
parent
ab96741612
commit
4f75b64399
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue