mirror of https://github.com/python/cpython
fix for f4d30d1a529e
Python 2.7 has only assertRaisesRegexp, not assertRaisesRegex
This commit is contained in:
parent
1d3acd4b59
commit
4d70e583ab
|
@ -147,7 +147,7 @@ class UnicodeNamesTest(unittest.TestCase):
|
|||
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'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue