summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_b1.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-11 22:25:59 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-11 22:25:59 (GMT)
commit69256612d721b8582c57f9669134366db98051b0 (patch)
tree381b336ec57d8907493a8681d323f51069a84eab /Lib/test/test_b1.py
parent08636f08edd37ff61639d23c031174aa65fabd50 (diff)
downloadcpython-69256612d721b8582c57f9669134366db98051b0.zip
cpython-69256612d721b8582c57f9669134366db98051b0.tar.gz
cpython-69256612d721b8582c57f9669134366db98051b0.tar.bz2
With the recent change that makes numbers compare smaller than anything,
the outcome of the test for max has changed.
Diffstat (limited to 'Lib/test/test_b1.py')
-rw-r--r--Lib/test/test_b1.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py
index 747fc9a..5a3e833 100644
--- a/Lib/test/test_b1.py
+++ b/Lib/test/test_b1.py
@@ -325,9 +325,9 @@ if map(None, Squares(10)) != [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]:
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: x, Squares(3), Squares(2))'
-if map(max, Squares(3), Squares(2)) != [0, 1, 4]:
- raise TestFailed, 'map(None: x, Squares(3), Squares(2))'
+ raise TestFailed, 'map(None, Squares(3), Squares(2))'
+if map(max, Squares(3), Squares(2)) != [0, 1, None]:
+ raise TestFailed, 'map(max, Squares(3), Squares(2))'
print 'max'
if max('123123') <> '3': raise TestFailed, 'max(\'123123\')'