mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Add a check that the bug Jeremy just fixed in _PyTuple_Resize() is
fixed. (Jeremy, how did you discover that?)
This commit is contained in:
parent
c7c36503eb
commit
10f36d9f0b
1 changed files with 5 additions and 0 deletions
|
@ -244,6 +244,11 @@ vereq(a[-100:100:], a)
|
|||
vereq(a[100:-100:-1], a[::-1])
|
||||
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'
|
||||
if len([]) != 0: raise TestFailed, 'len([])'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue