File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ if [[ "${WITH_SYMPY}" != "no" ]]; then
9
9
export conda_pkgs=" ${conda_pkgs} sympy" ;
10
10
fi
11
11
12
- if [[ " ${TEST_SYMPY} " == " yes" ]]; then
13
- export TEST_SYMPY = 1;
14
- fi
15
-
16
12
if [[ " ${WITH_NUMPY} " != " no" ]]; then
17
13
export conda_pkgs=" ${conda_pkgs} numpy" ;
18
14
fi
Original file line number Diff line number Diff line change 5
5
if not symengine .test ():
6
6
raise Exception ('Tests failed' )
7
7
8
- try :
8
+ if TEST_SYMPY :
9
9
import sympy
10
10
from sympy .core .cache import clear_cache
11
11
import atexit
12
12
13
13
atexit .register (clear_cache )
14
- have_sympy = True
15
- except ImportError :
16
- have_sympy = False
17
-
18
- if TEST_SYMPY and have_sympy :
19
14
print ('Testing SYMPY' )
20
15
if not sympy .test ('sympy/physics/mechanics' ):
21
16
raise Exception ('Tests failed' )
You can’t perform that action at this time.
0 commit comments