[Python-checkins] python/dist/src/Lib/test test_types.py,1.33,1.34
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Thu, 20 Jun 2002 19:14:12 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv23960
Modified Files:
test_types.py
Log Message:
Add a check that the bug Jeremy just fixed in _PyTuple_Resize() is
fixed.
(Jeremy, how did you discover that?)
Index: test_types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_types.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** test_types.py 19 Jun 2002 15:44:15 -0000 1.33
--- test_types.py 21 Jun 2002 02:14:10 -0000 1.34
***************
*** 245,248 ****
--- 245,253 ----
vereq(a[-100L:100L:2L], (0,2,4))
+ # Check that a specific bug in _PyTuple_Resize() is squashed.
+ def f():
+ for i in range(1000):
+ yield i
+ vereq(list(tuple(f())), range(1000))
print '6.5.3 Lists'