From: Guido van Rossum Date: Mon, 22 Jan 2001 16:01:24 +0000 (+0000) Subject: Numeric-smelling objects now once again compare smaller than X-Git-Tag: v2.1a1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9bae8b95a4e998c7c34d31b63dc47de85ffa359;p=python Numeric-smelling objects now once again compare smaller than non-numeric ones, so 4 < None again in the 'map' test. --- diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py index ea09d0be8c..97462b1242 100644 --- a/Lib/test/test_b1.py +++ b/Lib/test/test_b1.py @@ -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'