mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Update test_richcmp.py from 3.14.3
This commit is contained in:
committed by
Jeong, YunWon
parent
7b1db4868a
commit
c76fb0145b
6
Lib/test/test_richcmp.py
vendored
6
Lib/test/test_richcmp.py
vendored
@@ -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