Issue #10624: Move requires_IEEE_754 into test.support. I'll fix up other uses of it shortly.

This commit is contained in:
Eric Smith 2010-12-04 13:32:18 +00:00
parent 70099a1555
commit f24a0d90a9
2 changed files with 6 additions and 6 deletions

View file

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