mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Report additional diagnostic information in
test_math, to help track down debian-alpha buildbot failure.
This commit is contained in:
parent
47a84aa978
commit
9f99d70513
1 changed files with 6 additions and 1 deletions
|
@ -672,7 +672,12 @@ class MathTests(unittest.TestCase):
|
|||
# no real versions of rect, polar
|
||||
continue
|
||||
func = getattr(math, fn)
|
||||
result = func(ar)
|
||||
try:
|
||||
result = func(ar)
|
||||
except ValueError:
|
||||
message = ("Unexpected ValueError 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