summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_parser.py')
-rw-r--r--Lib/test/test_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index dbf6a92..14ebac9 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -444,9 +444,9 @@ class CompileTestCase(unittest.TestCase):
self.assertRaises(SyntaxError, parser.compilest, st)
def test_compile_badunicode(self):
- st = parser.suite('a = u"\U12345678"')
+ st = parser.suite('a = "\\U12345678"')
self.assertRaises(SyntaxError, parser.compilest, st)
- st = parser.suite('a = u"\u1"')
+ st = parser.suite('a = "\\u1"')
self.assertRaises(SyntaxError, parser.compilest, st)
def test_main():