From 38f0223c9cf8d157c596c2e4622a36aa29f4bd84 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Thu, 4 Jan 2001 01:33:41 +0000 Subject: [PATCH] Numbers no longer compare smaller than all other types. Fix the only part of the testsuite that breaks. The old behavior may be restored. --- Lib/test/test_b1.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py index 6e85453d998..6d6aa6fcf18 100644 --- a/Lib/test/test_b1.py +++ b/Lib/test/test_b1.py @@ -60,6 +60,7 @@ if chr(32) != ' ': raise TestFailed, 'chr(32)' if chr(65) != 'A': raise TestFailed, 'chr(65)' if chr(97) != 'a': raise TestFailed, 'chr(97)' +# cmp print 'cmp' if cmp(-1, 1) != -1: raise TestFailed, 'cmp(-1, 1)' if cmp(1, -1) != 1: raise TestFailed, 'cmp(1, -1)' @@ -465,7 +466,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, None]: +if map(max, Squares(3), Squares(2)) != [0, 1, 4]: raise TestFailed, 'map(max, Squares(3), Squares(2))' print 'max'