summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compare.py
Commit message (Collapse)AuthorAgeFilesLines
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-1/+1
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* Repair some accidents causing Windows failures:Tim Peters2001-08-161-1/+1
| | | | | | | + test_compare. While None compares less than anything else, it's not always the case that None has the smallest id(). + test_descr. The output of %p (pointer) formats varies across platforms. In particular, on Windows it doesn't produce a leading "0x".
* Given a class without __cmp__ or __eq__, cmp() of two instances ofGuido van Rossum2001-08-151-0/+8
| | | | | | that class should compare the id() of those instances. Add a test that verifies this. This test currently fails; I believe this is caused by object.c:2.132 (Patch #424475 by loewis).
* __rcmp__ no longer gets called on instances. Remove the test for it.Neil Schemenauer2001-01-041-12/+1
|
* Use == rather than cmp(). The return value of cmp() is not well defined whenNeil Schemenauer2001-01-031-7/+9
| | | | comparing different types.
* Add more tests for compare and coercion in preparation for the coercionNeil Schemenauer2001-01-021-0/+57
overhaul. Closes SF patch #102878.