Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_math.py @ 66706:ae3fa781eef2
Issue #10624: Move requires_IEEE_754 into test.support. I'll fix up other uses of it shortly.
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Sat, 04 Dec 2010 13:32:18 +0000 |
| parents | 9fe76c26ea9f |
| children | 3c9232a684ae |
line wrap: on
line diff
--- a/Lib/test/test_math.py Sat Dec 04 13:27:34 2010 +0000 +++ b/Lib/test/test_math.py Sat Dec 04 13:32:18 2010 +0000 @@ -1,7 +1,7 @@ # Python test set -- math module # XXXX Should not do tests around zero only -from test.support import run_unittest, verbose +from test.support import run_unittest, verbose, requires_IEEE_754 import unittest import math import os @@ -15,11 +15,6 @@ INF = float('inf') NINF = float('-inf') -# decorator for skipping tests on non-IEEE 754 platforms -requires_IEEE_754 = unittest.skipUnless( - float.__getformat__("double").startswith("IEEE"), - "test requires IEEE 754 doubles") - # detect evidence of double-rounding: fsum is not always correctly # rounded on machines that suffer from double rounding. x, y = 1e16, 2.9999 # use temporary values to defeat peephole optimizer
