summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_math.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_math.py')
-rw-r--r--Lib/test/test_math.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index 2f45a1e..41c2f4f 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -43,7 +43,7 @@ def to_ulps(x):
where C doubles are represented in IEEE 754 binary64 format.
"""
- n = struct.unpack('q', struct.pack('<d', x))[0]
+ n = struct.unpack('<q', struct.pack('<d', x))[0]
if n < 0:
n = ~(n+2**63)
return n