diff options
Diffstat (limited to 'Lib/test/test_math.py')
-rw-r--r-- | Lib/test/test_math.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 636ff2c..715003a 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -670,10 +670,9 @@ class MathTests(unittest.TestCase): self.assertTrue(math.isnan(math.log2(NAN))) @requires_IEEE_754 + # log2() is not accurate enough on Mac OS X Tiger (10.4) + @support.requires_mac_ver(10, 5) def testLog2Exact(self): - # log2() is not accurate enough on Mac OS X Tiger (10.4) - support.requires_mac_ver(10, 5) - # Check that we get exact equality for log2 of powers of 2. actual = [math.log2(math.ldexp(1.0, n)) for n in range(-1074, 1024)] expected = [float(n) for n in range(-1074, 1024)] |