diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-10-29 22:47:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 22:47:26 (GMT) |
commit | 4877e33708b3723d4b4069ca5c5f090d0b8dcec6 (patch) | |
tree | b7d26d1988ab8371068d6736720e49587ff31b15 /Lib/test/test_richcmp.py | |
parent | b1f13bce62ff666f59286e8325011d8e9e0ddca7 (diff) | |
download | cpython-4877e33708b3723d4b4069ca5c5f090d0b8dcec6.zip cpython-4877e33708b3723d4b4069ca5c5f090d0b8dcec6.tar.gz cpython-4877e33708b3723d4b4069ca5c5f090d0b8dcec6.tar.bz2 |
gh-126146: Remove ``__cmp__`` method from tests (#126147)
Remove ``__cmp__`` method from the tests because it was removed in 3.0 version.
Diffstat (limited to 'Lib/test/test_richcmp.py')
-rw-r--r-- | Lib/test/test_richcmp.py | 6 |
1 files changed, 0 insertions, 6 deletions
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, ) |