Kaydet (Commit) 3445b482 authored tarafından Mark Dickinson's avatar Mark Dickinson

Fix symbol numbers in test_parser test.

üst 2cc8a5e4
...@@ -471,18 +471,18 @@ class IllegalSyntaxTestCase(unittest.TestCase): ...@@ -471,18 +471,18 @@ class IllegalSyntaxTestCase(unittest.TestCase):
self.check_bad_tree(tree, "malformed global ast") self.check_bad_tree(tree, "malformed global ast")
def test_missing_import_source(self): def test_missing_import_source(self):
# from import a # from import fred
tree = \ tree = \
(257, (257,
(267, (268,
(268, (269,
(269, (270,
(281, (282,
(283, (1, 'from'), (1, 'import'), (284, (1, 'from'), (1, 'import'),
(286, (284, (1, 'fred')))))), (287, (285, (1, 'fred')))))),
(4, ''))), (4, ''))),
(4, ''), (0, '')) (4, ''), (0, ''))
self.check_bad_tree(tree, "from import a") self.check_bad_tree(tree, "from import fred")
class CompileTestCase(unittest.TestCase): class CompileTestCase(unittest.TestCase):
......
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