Commit b8dbee38 authored by Georg Brandl's avatar Georg Brandl

Manual backport of r78046.

parent c0fa2d24
......@@ -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()
......
......@@ -127,7 +127,7 @@ class test__RandomNameSequence(TC):
if i == 20:
break
except:
failOnException("iteration")
self.failOnException("iteration")
test_classes.append(test__RandomNameSequence)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment