diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-01-23 01:51:40 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-01-23 01:51:40 (GMT) |
commit | 578ceee04226d94322e29dbdb26c0919c8e18fa4 (patch) | |
tree | 3b1b82d67d0c2505553075a715a6136b279149a1 /Lib/test/output/test_grammar | |
parent | 2528b19a86ed8d3ed26114c414a7a312fa85e72d (diff) | |
download | cpython-578ceee04226d94322e29dbdb26c0919c8e18fa4.zip cpython-578ceee04226d94322e29dbdb26c0919c8e18fa4.tar.gz cpython-578ceee04226d94322e29dbdb26c0919c8e18fa4.tar.bz2 |
Add simple test of list comprehension that uses a name that isn't
otherwise used in the same code block. (Not sure this is the right
place, but there is no test_list_comprehensions.py.)
Diffstat (limited to 'Lib/test/output/test_grammar')
-rw-r--r-- | Lib/test/output/test_grammar | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/output/test_grammar b/Lib/test/output/test_grammar index 739d0c5..8ca7c33 100644 --- a/Lib/test/output/test_grammar +++ b/Lib/test/output/test_grammar @@ -55,6 +55,7 @@ classdef [3, 4, 5] [(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 [('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')] |