diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-01-04 01:33:41 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-01-04 01:33:41 (GMT) |
commit | 38f0223c9cf8d157c596c2e4622a36aa29f4bd84 (patch) | |
tree | 1cb22c76c7b49537adaa5e45c6de8e91cb16f35c /Lib/test/test_b1.py | |
parent | a7ed69454286bd8291db1bcecd8d1f19cf79aa5e (diff) | |
download | cpython-38f0223c9cf8d157c596c2e4622a36aa29f4bd84.zip cpython-38f0223c9cf8d157c596c2e4622a36aa29f4bd84.tar.gz cpython-38f0223c9cf8d157c596c2e4622a36aa29f4bd84.tar.bz2 |
Numbers no longer compare smaller than all other types. Fix the only
part of the testsuite that breaks. The old behavior may be restored.
Diffstat (limited to 'Lib/test/test_b1.py')
-rw-r--r-- | Lib/test/test_b1.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py index 6e85453..6d6aa6f 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' |