Issue #10624: Use support.requires_IEEE_754 in all appropriate tests.

This commit is contained in:
Eric Smith 2010-12-04 15:17:38 +00:00
parent 932e49e394
commit 3ab08cadae
7 changed files with 30 additions and 56 deletions

View file

@ -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]