Remove ``__cmp__`` method from the tests because it was removed in 3.0 version.
class C(base):
def __init__(self, value):
self.value = int(value)
- def __cmp__(self_, other):
- self.fail("shouldn't call __cmp__")
def __eq__(self, other):
if isinstance(other, C):
return self.value == other.value
def __ge__(self, other):
return self.x >= other
- def __cmp__(self, other):
- raise support.TestFailed("Number.__cmp__() should not be called")
-
def __repr__(self):
return "Number(%r)" % (self.x, )
def __bool__(self):
raise TypeError("Vectors cannot be used in Boolean contexts")
- def __cmp__(self, other):
- raise support.TestFailed("Vector.__cmp__() should not be called")
-
def __repr__(self):
return "Vector(%r)" % (self.data, )