Update of /cvsroot/python/python/dist/src/Lib/test In directory usw-pr-cvs1:/tmp/cvs-serv21390/Lib/test Modified Files: test_b1.py Log Message: Numbers no longer compare smaller than all other types. Fix the only part of the testsuite that breaks. The old behavior may be restored. Index: test_b1.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_b1.py,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -r1.29 -r1.30 *** test_b1.py 2001/01/03 23:53:31 1.29 --- test_b1.py 2001/01/04 01:33:41 1.30 *************** *** 61,64 **** --- 61,65 ---- if chr(97) != 'a': raise TestFailed, 'chr(97)' + # cmp print 'cmp' if cmp(-1, 1) != -1: raise TestFailed, 'cmp(-1, 1)' *************** *** 466,470 **** 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]: raise TestFailed, 'map(max, Squares(3), Squares(2))' --- 467,471 ---- 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]: raise TestFailed, 'map(max, Squares(3), Squares(2))'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4