From f605172d2b595fc42cf55a5f7d4819abb0396fd2 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 20 Jun 2014 01:50:49 +0300 Subject: tests/float/: Skip tests if "math" module is not available. --- tests/float/math-fun.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/float/math-fun.py') diff --git a/tests/float/math-fun.py b/tests/float/math-fun.py index 7a37c5845..fa111e33e 100644 --- a/tests/float/math-fun.py +++ b/tests/float/math-fun.py @@ -1,6 +1,11 @@ # 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] -- cgit v1.2.3