aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_richcmp.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_richcmp.py')
-rw-r--r--Lib/test/test_richcmp.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/test_richcmp.py b/Lib/test/test_richcmp.py
index 5f449cdc05c..b967c7623c5 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, )