diff options
author | Eric Smith <eric@trueblade.com> | 2010-12-04 15:17:38 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2010-12-04 15:17:38 (GMT) |
commit | 3ab08cadaebd694533edee03ad2b4eba2055d4e3 (patch) | |
tree | 800efe09ec68445facc140614c7c7420a51c80a4 /Lib/test/test_decimal.py | |
parent | 932e49e3946901f3e2d05f25e407b6be84dac161 (diff) | |
download | cpython-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_decimal.py')
-rw-r--r-- | Lib/test/test_decimal.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 3036170..8f1f863 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -32,7 +32,8 @@ import pickle, copy import unittest from decimal import * import numbers -from test.support import run_unittest, run_doctest, is_resource_enabled +from test.support import (run_unittest, run_doctest, is_resource_enabled, + requires_IEEE_754) from test.support import check_warnings import random try: @@ -61,11 +62,6 @@ def init(): ) setcontext(DefaultTestContext) -# decorator for skipping tests on non-IEEE 754 platforms -requires_IEEE_754 = unittest.skipUnless( - float.__getformat__("double").startswith("IEEE"), - "test requires IEEE 754 doubles") - TESTDATADIR = 'decimaltestdata' if __name__ == '__main__': file = sys.argv[0] |