diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 98221e625c3..4096f1fadb0 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -73,7 +73,7 @@ def truediv(a, b): if 2*r > b or 2*r == b and q % 2 == 1: q += 1 - result = float(q) * 2.**exp + result = math.ldexp(q, exp) return -result if negative else result