From 25f1264699b9f718607e3e861ed6217bf490fe46 Mon Sep 17 00:00:00 2001 From: stijn Date: Tue, 3 Mar 2015 11:24:52 +0100 Subject: [PATCH] tests: Skip special math fun tests when math module exists but not funs. --- tests/float/math_fun_special.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/float/math_fun_special.py b/tests/float/math_fun_special.py index 970e8c4c30..c30085a2be 100644 --- a/tests/float/math_fun_special.py +++ b/tests/float/math_fun_special.py @@ -2,7 +2,8 @@ try: from math import * -except ImportError: + erf +except (ImportError, NameError): print("SKIP") import sys sys.exit()