diff options
Diffstat (limited to 'tests/float/math-fun-bool.py')
-rw-r--r-- | tests/float/math-fun-bool.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/float/math-fun-bool.py b/tests/float/math-fun-bool.py index cf718d4b80..57232857ab 100644 --- a/tests/float/math-fun-bool.py +++ b/tests/float/math-fun-bool.py @@ -1,6 +1,11 @@ # Test the bool functions from math -from math import isfinite, isnan, isinf +try: + from math import isfinite, isnan, isinf +except ImportError: + print("SKIP") + import sys + sys.exit() test_values = [1, 0, -1, 1.0, 0.0, -1.0, float('NaN'), float('Inf'), -float('NaN'), -float('Inf')] |