]> granicus.if.org Git - python/commitdiff
__rcmp__ no longer gets called on instances. Remove the test for it.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Thu, 4 Jan 2001 01:34:52 +0000 (01:34 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Thu, 4 Jan 2001 01:34:52 +0000 (01:34 +0000)
Lib/test/test_compare.py

index e8698a9b59a4d25fea271d485c369f233526344a..9184355f2f49d147325f26b87d1cf7f5ce6b2c4b 100644 (file)
@@ -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: