We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da426d commit 1cd8b13Copy full SHA for 1cd8b13
Lib/test/test_math.py
@@ -859,9 +859,9 @@ def testHypotAccuracy(self):
859
('0x1.282bdb82f17f3p+30', '0x1.640ba4c4eed3ap+30'),
860
('0x1.89d8c423ea0c6p+29', '0x1.d35dcfe902bc3p+29'),
861
]:
862
- with self.subTest(hx=hx, hy=hy):
863
- x = float.fromhex(hx)
864
- y = float.fromhex(hy)
+ x = float.fromhex(hx)
+ y = float.fromhex(hy)
+ with self.subTest(hx=hx, hy=hy, x=x, y=y):
865
with decimal.localcontext(high_precision):
866
z = float((Decimal(x)**2 + Decimal(y)**2).sqrt())
867
self.assertEqual(hypot(x, y), z)
0 commit comments