mirror of https://github.com/python/cpython
Better error reporting in test_math.py
This commit is contained in:
parent
c11c3391b0
commit
d055835253
|
@ -902,6 +902,10 @@ class MathTests(unittest.TestCase):
|
|||
message = ("Unexpected ValueError in " +
|
||||
"test %s:%s(%r)\n" % (id, fn, ar))
|
||||
self.fail(message)
|
||||
except OverflowError:
|
||||
message = ("Unexpected OverflowError in " +
|
||||
"test %s:%s(%r)\n" % (id, fn, ar))
|
||||
self.fail(message)
|
||||
self.ftest("%s:%s(%r)" % (id, fn, ar), result, er)
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Reference in New Issue