mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #10624: Move requires_IEEE_754 into test.support. I'll fix up other uses of it shortly.
This commit is contained in:
parent
70099a1555
commit
f24a0d90a9
2 changed files with 6 additions and 6 deletions
|
@ -366,6 +366,11 @@ def fcmp(x, y): # fuzzy comparison function
|
|||
return (len(x) > len(y)) - (len(x) < len(y))
|
||||
return (x > y) - (x < y)
|
||||
|
||||
# decorator for skipping tests on non-IEEE 754 platforms
|
||||
requires_IEEE_754 = unittest.skipUnless(
|
||||
float.__getformat__("double").startswith("IEEE"),
|
||||
"test requires IEEE 754 doubles")
|
||||
|
||||
is_jython = sys.platform.startswith('java')
|
||||
|
||||
# Filename used for testing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue