fix for f4d30d1a529e

Python 2.7 has only assertRaisesRegexp, not assertRaisesRegex
This commit is contained in:
Christian Heimes 2013-01-21 11:25:27 +01:00
parent 1d3acd4b59
commit 4d70e583ab
1 changed files with 1 additions and 1 deletions

View File

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