summaryrefslogtreecommitdiffstats
path: root/Lib/test/output
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-02-19 15:35:26 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-02-19 15:35:26 (GMT)
commit4779399e9f4ff6fe7734fa9931aa6df82a98da24 (patch)
treebb5da06b7e75258f69c244e73ad9e5a91fdc5fe9 /Lib/test/output
parentc348cd751846ddc8cec61c47928867e30d94549c (diff)
downloadcpython-4779399e9f4ff6fe7734fa9931aa6df82a98da24.zip
cpython-4779399e9f4ff6fe7734fa9931aa6df82a98da24.tar.gz
cpython-4779399e9f4ff6fe7734fa9931aa6df82a98da24.tar.bz2
Add test for syntax error on "x = 1 + 1".
Move check_syntax() function into test_support.
Diffstat (limited to 'Lib/test/output')
-rw-r--r--Lib/test/output/test_grammar5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/output/test_grammar b/Lib/test/output/test_grammar
index c69697d..70d8836 100644
--- a/Lib/test/output/test_grammar
+++ b/Lib/test/output/test_grammar
@@ -14,7 +14,6 @@ expr_input
eval_input
funcdef
lambdef
-SyntaxError expected for "lambda x: x = 2"
simple_stmt
expr_stmt
print_stmt
@@ -26,8 +25,6 @@ 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
@@ -62,6 +59,4 @@ 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]
-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')]