mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Update test_richcmp.py from 3.14.3
This commit is contained in:
1 parent
2f3fb7b5a9
commit
23b26afab8
1 file changed
-6
Vendored
-6
@@ -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, )
|
||||
|
||||
|
||||
Reference in new issue
Block a user