diff options
author | Eric Smith <eric@trueblade.com> | 2010-12-04 15:17:38 +0000 |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2010-12-04 15:17:38 +0000 |
commit | 9c91999aaca559943bbd919daffb96cae79b9256 (patch) | |
tree | 33190d0d26bd024815347d0359cbd15cac594a2e /Lib/test/test_decimal.py | |
parent | 9eccd5e4526fe443eb8e991a6ed53d25ac0fc6bf (diff) | |
download | cpython-9c91999aaca559943bbd919daffb96cae79b9256.tar.gz |
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 3036170aeb..8f1f8638ff 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] |