diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-20 01:50:49 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-20 18:00:23 +0300 |
commit | f605172d2b595fc42cf55a5f7d4819abb0396fd2 (patch) | |
tree | 9aa7942234c9ed44b64211a46547f5f975d79f41 /tests/float/math-fun-bool.py | |
parent | 3b6f7b95eb487fc927a3bc4644b1941cfbe2612b (diff) | |
download | micropython-f605172d2b595fc42cf55a5f7d4819abb0396fd2.tar.gz micropython-f605172d2b595fc42cf55a5f7d4819abb0396fd2.zip |
tests/float/: Skip tests if "math" module is not available.
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')] |