Commit f605172d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/float/: Skip tests if "math" module is not available.

parent 3b6f7b95
# 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')]
......
# Tests the functions imported from math
from math import *
try:
from math import *
except ImportError:
print("SKIP")
import sys
sys.exit()
test_values = [-100., -1.23456, -1, -0.5, 0.0, 0.5, 1.23456, 100.]
p_test_values = [0.1, 0.5, 1.23456]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment