diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-12-06 21:24:30 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-12-06 21:24:30 +0000 |
commit | a4a04d1a89d431293c65efd101335304d5885a1f (patch) | |
tree | e0fb8b42c0f3571e3345a4f4b503c35765379fca /Lib/test/test_parser.py | |
parent | add792fa7d830c9afb2ed3c170d188adaec36293 (diff) | |
download | cpython-git-a4a04d1a89d431293c65efd101335304d5885a1f.tar.gz |
fix test_parser from tokenizer tweak
Diffstat (limited to 'Lib/test/test_parser.py')
-rw-r--r-- | Lib/test/test_parser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py index ad5c5be35a..a7f8fc2f8f 100644 --- a/Lib/test/test_parser.py +++ b/Lib/test/test_parser.py @@ -214,7 +214,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase): def test_position(self): # An absolutely minimal test of position information. Better # tests would be a big project. - code = "def f(x):\n return x + 1\n" + code = "def f(x):\n return x + 1" st1 = parser.suite(code) st2 = st1.totuple(line_info=1, col_info=1) @@ -243,9 +243,9 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase): (14, '+', 2, 13), (2, '1', 2, 15), (4, '', 2, 16), - (6, '', 3, -1), - (4, '', 3, -1), - (0, '', 3, -1)], + (6, '', 2, -1), + (4, '', 2, -1), + (0, '', 2, -1)], terminals) |