[Python-checkins] CVS: python/dist/src/Lib/test/output test_grammar,1.16,1.17

Jeremy Hylton jhylton@users.sourceforge.net
2001年3月19日 12:42:13 -0800


Update of /cvsroot/python/python/dist/src/Lib/test/output
In directory usw-pr-cvs1:/tmp/cvs-serv3928/output
Modified Files:
	test_grammar 
Log Message:
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.
Index: test_grammar
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_grammar,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** test_grammar	2001年02月19日 15:54:52	1.16
--- test_grammar	2001年03月19日 20:42:11	1.17
***************
*** 61,63 ****
--- 61,64 ----
 [(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')]

AltStyle によって変換されたページ (->オリジナル) /