mirror of https://github.com/python/cpython
Numeric-smelling objects now once again compare smaller than
non-numeric ones, so 4 < None again in the 'map' test.
This commit is contained in:
parent
8f9143da33
commit
d9bae8b95a
|
@ -483,7 +483,7 @@ if map(int, Squares(10)) != [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]:
|
||||||
raise TestFailed, 'map(int, Squares(10))'
|
raise TestFailed, 'map(int, Squares(10))'
|
||||||
if map(None, Squares(3), Squares(2)) != [(0,0), (1,1), (4,None)]:
|
if map(None, Squares(3), Squares(2)) != [(0,0), (1,1), (4,None)]:
|
||||||
raise TestFailed, 'map(None, Squares(3), Squares(2))'
|
raise TestFailed, 'map(None, Squares(3), Squares(2))'
|
||||||
if map(max, Squares(3), Squares(2)) != [0, 1, 4]:
|
if map(max, Squares(3), Squares(2)) != [0, 1, None]:
|
||||||
raise TestFailed, 'map(max, Squares(3), Squares(2))'
|
raise TestFailed, 'map(max, Squares(3), Squares(2))'
|
||||||
|
|
||||||
print 'max'
|
print 'max'
|
||||||
|
|
Loading…
Reference in New Issue