mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
Manual backport of r78046.
This commit is contained in:
parent
c0fa2d24eb
commit
b8dbee38dd
2 changed files with 4 additions and 4 deletions
|
@ -195,9 +195,9 @@ class MiscTest(unittest.TestCase):
|
|||
def __lt__(self, other): return 0
|
||||
def __gt__(self, other): return 0
|
||||
def __eq__(self, other): return 0
|
||||
def __le__(self, other): raise TestFailed, "This shouldn't happen"
|
||||
def __ge__(self, other): raise TestFailed, "This shouldn't happen"
|
||||
def __ne__(self, other): raise TestFailed, "This shouldn't happen"
|
||||
def __le__(self, other): raise test_support.TestFailed, "This shouldn't happen"
|
||||
def __ge__(self, other): raise test_support.TestFailed, "This shouldn't happen"
|
||||
def __ne__(self, other): raise test_support.TestFailed, "This shouldn't happen"
|
||||
def __cmp__(self, other): raise RuntimeError, "expected"
|
||||
a = Misb()
|
||||
b = Misb()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue