From 4d70e583ab442930d6e2e1757274aadf37112868 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 21 Jan 2013 11:25:27 +0100 Subject: [PATCH] fix for f4d30d1a529e Python 2.7 has only assertRaisesRegexp, not assertRaisesRegex --- Lib/test/test_ucn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_ucn.py b/Lib/test/test_ucn.py index 1d303dc97d7..397d6cd45d9 100644 --- a/Lib/test/test_ucn.py +++ b/Lib/test/test_ucn.py @@ -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' )