summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_descr.py2
-rw-r--r--Lib/test/test_richcmp.py6
2 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index c8e3a4b..aa801b9 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -3239,8 +3239,6 @@ class ClassPropertiesAndMethods(unittest.TestCase):
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
diff --git a/Lib/test/test_richcmp.py b/Lib/test/test_richcmp.py
index 5f449cd..b967c76 100644
--- a/Lib/test/test_richcmp.py
+++ b/Lib/test/test_richcmp.py
@@ -28,9 +28,6 @@ class Number:
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, )
@@ -53,9 +50,6 @@ class Vector:
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, )