mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Better error reporting in test_math.py
This commit is contained in:
parent
c11c3391b0
commit
d055835253
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue