mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #10624: Use support.requires_IEEE_754 in all appropriate tests.
This commit is contained in:
parent
932e49e394
commit
3ab08cadae
7 changed files with 30 additions and 56 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue