1. Armin Rigo
  2. cpython-withatomic

Commits

Benjamin Peterson  committed adbde5c

fix test_unittest

  • Participants
  • Parent commits 28e30a5
  • Branches default

Comments (0)

Files changed (1)

File Lib/test/test_unittest.py

View file
 
     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)