mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Add test for core dump -- make sure it doesn't come back!
This commit is contained in:
parent
c88aa3594f
commit
d151d34ebd
1 changed files with 5 additions and 0 deletions
|
@ -161,6 +161,11 @@ if a <> [-2,-1,0,1,2]: raise TestFailed, 'list sort'
|
|||
def revcmp(a, b): return cmp(b, a)
|
||||
a.sort(revcmp)
|
||||
if a <> [2,1,0,-1,-2]: raise TestFailed, 'list sort with cmp func'
|
||||
# The following dumps core in unpatched Python 1.5:
|
||||
def myComparison(x,y):
|
||||
return cmp(x%3, y%7)
|
||||
z = range(12)
|
||||
z.sort(myComparison)
|
||||
|
||||
print '6.6 Mappings == Dictionaries'
|
||||
d = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue