summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_math.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-17 07:10:00 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-17 07:10:00 (GMT)
commitd412ab5260b9fda3c840c87f9e277b7f680ebf73 (patch)
tree863dff5fbb422cf2f9c123a0f29a1951b2a477ac /Lib/test/test_math.py
parent2b6eb183521cdd13f184815c7f5900ecf8af3fcd (diff)
downloadcpython-d412ab5260b9fda3c840c87f9e277b7f680ebf73.zip
cpython-d412ab5260b9fda3c840c87f9e277b7f680ebf73.tar.gz
cpython-d412ab5260b9fda3c840c87f9e277b7f680ebf73.tar.bz2
Merged revisions 75454 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75454 | mark.dickinson | 2009-10-17 08:06:37 +0100 (Sat, 17 Oct 2009) | 1 line test_math ulp computation was wrong on big-endian systems ........
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 6d06fef..2226023 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