Kaydet (Commit) 7eb6ca54 authored tarafından Guido van Rossum's avatar Guido van Rossum

Make test_parser pass after merge.

üst df4a743a
...@@ -444,9 +444,9 @@ class CompileTestCase(unittest.TestCase): ...@@ -444,9 +444,9 @@ class CompileTestCase(unittest.TestCase):
self.assertRaises(SyntaxError, parser.compilest, st) self.assertRaises(SyntaxError, parser.compilest, st)
def test_compile_badunicode(self): def test_compile_badunicode(self):
st = parser.suite('a = u"\U12345678"') st = parser.suite('a = "\\U12345678"')
self.assertRaises(SyntaxError, parser.compilest, st) self.assertRaises(SyntaxError, parser.compilest, st)
st = parser.suite('a = u"\u1"') st = parser.suite('a = "\\u1"')
self.assertRaises(SyntaxError, parser.compilest, st) self.assertRaises(SyntaxError, parser.compilest, st)
def test_main(): def test_main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment