summaryrefslogtreecommitdiffstats
path: root/Lib/test/output/test_grammar
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-03-19 20:42:11 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-03-19 20:42:11 (GMT)
commite241e29f3d0c4a2e4c7beee018ae409beb4239de (patch)
tree33916bded649f76b132bc93f6136d79ae3a9a915 /Lib/test/output/test_grammar
parent23b4227ec899bb0e3e6f41d58e354418999fae8c (diff)
downloadcpython-e241e29f3d0c4a2e4c7beee018ae409beb4239de.zip
cpython-e241e29f3d0c4a2e4c7beee018ae409beb4239de.tar.gz
cpython-e241e29f3d0c4a2e4c7beee018ae409beb4239de.tar.bz2
Add test for a list comprehension that is nested in the left-hand part
of another list comp. This caused crashes reported as SF bugs 409230 and 407800. Note that the new tests are in a function so that the name lookup code isn't affected by how many *other* list comprehensions are in the same scope.
Diffstat (limited to 'Lib/test/output/test_grammar')
-rw-r--r--Lib/test/output/test_grammar1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/output/test_grammar b/Lib/test/output/test_grammar
index 927b4fe..5d0c177 100644
--- a/Lib/test/output/test_grammar
+++ b/Lib/test/output/test_grammar
@@ -60,4 +60,5 @@ 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]
+[[1, 2], [3, 4], [5, 6]]
[('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')]