Commits

Christian Heimes  committed cd8d983 Draft

fix for f4d30d1a529e
Python 2.7 has only assertRaisesRegexp, not assertRaisesRegex

  • Participants
  • Parent commits f4d30d1
  • Branches 2.7

Comments (0)

Files changed (1)

File Lib/test/test_ucn.py

         except MemoryError:
             raise unittest.SkipTest("not enough memory")
         self.assertEqual(len(x), len(b'\\N{SPACE}') + (_testcapi.UINT_MAX + 1))
-        self.assertRaisesRegex(UnicodeError,
+        self.assertRaisesRegexp(UnicodeError,
             'unknown Unicode character name',
             x.decode, 'unicode-escape'
         )