diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-07-18 19:58:42 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-07-18 19:58:42 (GMT) |
commit | db98f3632a800c47442b8a78ab73d92cbd70700b (patch) | |
tree | 7777998ed649cfbaad2b4cc8e1f666ae6e7d4681 /Lib/test | |
parent | b6ac23cd07ce560dcfd41e74e915d6afe4e8a525 (diff) | |
download | cpython-db98f3632a800c47442b8a78ab73d92cbd70700b.zip cpython-db98f3632a800c47442b8a78ab73d92cbd70700b.tar.gz cpython-db98f3632a800c47442b8a78ab73d92cbd70700b.tar.bz2 |
Fix failing unicode test caused by change to ast.c at r56441
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_unicode.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index b022300..ef6a722 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -55,9 +55,9 @@ class UnicodeTest( def test_literals(self): self.assertEqual(u'\xff', u'\u00ff') self.assertEqual(u'\uffff', u'\U0000ffff') - self.assertRaises(UnicodeError, eval, 'u\'\\Ufffffffe\'') - self.assertRaises(UnicodeError, eval, 'u\'\\Uffffffff\'') - self.assertRaises(UnicodeError, eval, 'u\'\\U%08x\'' % 0x110000) + self.assertRaises(SyntaxError, eval, 'u\'\\Ufffffffe\'') + self.assertRaises(SyntaxError, eval, 'u\'\\Uffffffff\'') + self.assertRaises(SyntaxError, eval, 'u\'\\U%08x\'' % 0x110000) def test_repr(self): if not sys.platform.startswith('java'): |