Commit aa726ba9 authored by Neil Schemenauer's avatar Neil Schemenauer

__rcmp__ no longer gets called on instances. Remove the test for it.

parent 38f0223c
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment