]> granicus.if.org Git - python/commitdiff
Numeric-smelling objects now once again compare smaller than
authorGuido van Rossum <guido@python.org>
Mon, 22 Jan 2001 16:01:24 +0000 (16:01 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 22 Jan 2001 16:01:24 +0000 (16:01 +0000)
non-numeric ones, so 4 < None again in the 'map' test.

Lib/test/test_b1.py

index ea09d0be8ce04c124ab392f418fd1106fae0c84f..97462b12423af7624fe00fd9ae6deb5ea7c76961 100644 (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))'
 if map(None, Squares(3), Squares(2)) != [(0,0), (1,1), (4,None)]:
     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))'
 
 print 'max'