diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-01-04 01:34:52 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-01-04 01:34:52 (GMT) |
commit | aa726ba991903342154f95037b58b546ff897766 (patch) | |
tree | c593af97c8387aff0d4ce397d14bb7faa95d94e3 /Lib/test/test_compare.py | |
parent | 38f0223c9cf8d157c596c2e4622a36aa29f4bd84 (diff) | |
download | cpython-aa726ba991903342154f95037b58b546ff897766.zip cpython-aa726ba991903342154f95037b58b546ff897766.tar.gz cpython-aa726ba991903342154f95037b58b546ff897766.tar.bz2 |
__rcmp__ no longer gets called on instances. Remove the test for it.
Diffstat (limited to 'Lib/test/test_compare.py')
-rw-r--r-- | Lib/test/test_compare.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Lib/test/test_compare.py b/Lib/test/test_compare.py index e8698a9..9184355 100644 --- a/Lib/test/test_compare.py +++ b/Lib/test/test_compare.py @@ -29,19 +29,8 @@ class Cmp: def __cmp__(self, other): return cmp(self.arg, other) -class RCmp: - def __init__(self,arg): - self.arg = arg - - def __repr__(self): - return '<RCmp %s>' % self.arg - - def __rcmp__(self, other): - return cmp(other, self.arg) - -candidates = [2, 2.0, 2L, 2+0j, [1], (3,), None, Empty(), Coerce(2), - Cmp(2.0), RCmp(2L)] +candidates = [2, 2.0, 2L, 2+0j, [1], (3,), None, Empty(), Coerce(2), Cmp(2.0)] def test(): for a in candidates: |