Skip to content

Commit 62597d6

Browse files
committed
revert un-necessary change
1 parent afb0a91 commit 62597d6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/test/test_math.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,9 @@ def ftest(self, name, got, expected, ulp_tol=5, abs_tol=0.0):
254254
non-finite floats, exact equality is demanded. Also, nan==nan
255255
in this function.
256256
"""
257-
with self.subTest(name):
258-
failure = result_check(expected, got, ulp_tol, abs_tol)
259-
if failure is not None:
260-
self.fail(failure)
257+
failure = result_check(expected, got, ulp_tol, abs_tol)
258+
if failure is not None:
259+
self.fail("{}: {}".format(name, failure))
261260

262261
def testConstants(self):
263262
# Ref: Abramowitz & Stegun (Dover, 1965)

0 commit comments

Comments
 (0)