tests: Skip special math fun tests when math module exists but not funs.
This commit is contained in:
parent
803264bb17
commit
25f1264699
|
@ -2,7 +2,8 @@
|
|||
|
||||
try:
|
||||
from math import *
|
||||
except ImportError:
|
||||
erf
|
||||
except (ImportError, NameError):
|
||||
print("SKIP")
|
||||
import sys
|
||||
sys.exit()
|
||||
|
|
Loading…
Reference in New Issue