summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fractions.py
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2010-12-04 15:17:38 (GMT)
committerEric Smith <eric@trueblade.com>2010-12-04 15:17:38 (GMT)
commit3ab08cadaebd694533edee03ad2b4eba2055d4e3 (patch)
tree800efe09ec68445facc140614c7c7420a51c80a4 /Lib/test/test_fractions.py
parent932e49e3946901f3e2d05f25e407b6be84dac161 (diff)
downloadcpython-3ab08cadaebd694533edee03ad2b4eba2055d4e3.zip
cpython-3ab08cadaebd694533edee03ad2b4eba2055d4e3.tar.gz
cpython-3ab08cadaebd694533edee03ad2b4eba2055d4e3.tar.bz2
Issue #10624: Use support.requires_IEEE_754 in all appropriate tests.
Diffstat (limited to 'Lib/test/test_fractions.py')
-rw-r--r--Lib/test/test_fractions.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/test/test_fractions.py b/Lib/test/test_fractions.py
index a63ee89..26e132f 100644
--- a/Lib/test/test_fractions.py
+++ b/Lib/test/test_fractions.py
@@ -1,7 +1,7 @@
"""Tests for Lib/fractions.py."""
from decimal import Decimal
-from test.support import run_unittest
+from test.support import run_unittest, requires_IEEE_754
import math
import numbers
import operator
@@ -12,11 +12,6 @@ from pickle import dumps, loads
F = fractions.Fraction
gcd = fractions.gcd
-# decorator for skipping tests on non-IEEE 754 platforms
-requires_IEEE_754 = unittest.skipUnless(
- float.__getformat__("double").startswith("IEEE"),
- "test requires IEEE 754 doubles")
-
class DummyFloat(object):
"""Dummy float class for testing comparisons with Fractions"""