]> granicus.if.org Git - python/commitdiff
Make test_parser pass after merge.
authorGuido van Rossum <guido@python.org>
Wed, 18 Jul 2007 21:00:22 +0000 (21:00 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 18 Jul 2007 21:00:22 +0000 (21:00 +0000)
Lib/test/test_parser.py

index dbf6a92aab7cc530abcedeab3e009f2a9c715fed..14ebac9c76654960638cc94c97fcf26175503c37 100644 (file)
@@ -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():