diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-01-25 17:03:37 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-01-25 17:03:37 (GMT) |
commit | 92e9f29aecff6e28b59843cd5446b7984dc928f7 (patch) | |
tree | 7175acf4e47963b1542c0bfb998b8d85a273d434 /Lib/test/output/test_grammar | |
parent | a6ebc4841db8324d89266436f4b4ac28a1f2141d (diff) | |
download | cpython-92e9f29aecff6e28b59843cd5446b7984dc928f7.zip cpython-92e9f29aecff6e28b59843cd5446b7984dc928f7.tar.gz cpython-92e9f29aecff6e28b59843cd5446b7984dc928f7.tar.bz2 |
add extra tests to verify that co_varnames is being set up properly
also normalize checks for syntax errors and delete commented out
definition of verify.
Diffstat (limited to 'Lib/test/output/test_grammar')
-rw-r--r-- | Lib/test/output/test_grammar | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/output/test_grammar b/Lib/test/output/test_grammar index 8ca7c33..bc9c9d4 100644 --- a/Lib/test/output/test_grammar +++ b/Lib/test/output/test_grammar @@ -24,6 +24,8 @@ extended print_stmt 1 2 3 1 1 1 hello world +SyntaxError expected for "print ," +SyntaxError expected for "print >> x," del_stmt pass_stmt flow_stmt @@ -56,6 +58,6 @@ classdef [(1, 'Apple'), (1, 'Banana'), (1, 'Coconut'), (2, 'Apple'), (2, 'Banana'), (2, 'Coconut'), (3, 'Apple'), (3, 'Banana'), (3, 'Coconut'), (4, 'Apple'), (4, 'Banana'), (4, 'Coconut'), (5, 'Apple'), (5, 'Banana'), (5, 'Coconut')] [(1, 'Banana'), (1, 'Coconut'), (2, 'Banana'), (2, 'Coconut'), (3, 'Banana'), (3, 'Coconut'), (4, 'Banana'), (4, 'Coconut'), (5, 'Banana'), (5, 'Coconut')] [0, 0, 0] -good: got a SyntaxError as expected -good: got a SyntaxError as expected +SyntaxError expected for "[i, s for i in nums for s in strs]" +SyntaxError expected for "[x if y]" [('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')] |