mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Make test_parser pass after merge.
This commit is contained in:
parent
df4a743ac0
commit
7eb6ca54a7
1 changed files with 2 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue