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:
Guido van Rossum 2001-01-22 16:01:24 +00:00
parent 8f9143da33
commit d9bae8b95a
1 changed files with 1 additions and 1 deletions

View File

@ -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'