From: Mark Dickinson Date: Sat, 17 Oct 2009 07:06:37 +0000 (+0000) Subject: test_math ulp computation was wrong on big-endian systems X-Git-Tag: v2.7a1~331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59ca92093c548af1acb4bc3e9e9dc3649ece513d;p=python test_math ulp computation was wrong on big-endian systems --- diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 2f45a1ea3c..41c2f4fe47 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('