summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index f09721a..3032f79 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -55,10 +55,9 @@ class UnicodeTest(
def test_literals(self):
self.assertEqual('\xff', '\u00ff')
self.assertEqual('\uffff', '\U0000ffff')
- self.assertRaises((UnicodeError, SyntaxError), eval, '\'\\Ufffffffe\'')
- self.assertRaises((UnicodeError, SyntaxError), eval, '\'\\Uffffffff\'')
- self.assertRaises((UnicodeError, SyntaxError),
- eval, '\'\\U%08x\'' % 0x110000)
+ self.assertRaises(SyntaxError, eval, '\'\\Ufffffffe\'')
+ self.assertRaises(SyntaxError, eval, '\'\\Uffffffff\'')
+ self.assertRaises(SyntaxError, eval, '\'\\U%08x\'' % 0x110000)
def test_repr(self):
if not sys.platform.startswith('java'):