Skip to content

Commit 1cd8b13

Browse files
committed
Generate more informative error messages
1 parent 6da426d commit 1cd8b13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_math.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,9 +859,9 @@ def testHypotAccuracy(self):
859859
('0x1.282bdb82f17f3p+30', '0x1.640ba4c4eed3ap+30'),
860860
('0x1.89d8c423ea0c6p+29', '0x1.d35dcfe902bc3p+29'),
861861
]:
862-
with self.subTest(hx=hx, hy=hy):
863-
x = float.fromhex(hx)
864-
y = float.fromhex(hy)
862+
x = float.fromhex(hx)
863+
y = float.fromhex(hy)
864+
with self.subTest(hx=hx, hy=hy, x=x, y=y):
865865
with decimal.localcontext(high_precision):
866866
z = float((Decimal(x)**2 + Decimal(y)**2).sqrt())
867867
self.assertEqual(hypot(x, y), z)

0 commit comments

Comments
 (0)