File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 26
26
# # executed.
27
27
matrix :
28
28
# Debug builds:
29
- - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7" TRIGGER_FEEDSTOCK="yes"
30
- - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="3.6"
29
+ - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7" TRIGGER_FEEDSTOCK="yes" TEST_SYMPY="yes"
30
+ - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="3.6" TEST_SYMPY="yes"
31
31
32
32
# Release builds:
33
33
- PYTHON_VERSION="2.7" BUILD_SHARED_LIBS="yes"
Original file line number Diff line number Diff line change
1
+ import os
2
+ TEST_SYMPY = os .getenv ('TEST_SYMPY' , False )
3
+
1
4
import symengine
2
5
if not symengine .test ():
3
6
raise Exception ('Tests failed' )
7
+
8
+ if TEST_SYMPY :
9
+ import sympy
10
+ from sympy .core .cache import clear_cache
11
+ import atexit
12
+
13
+ atexit .register (clear_cache )
14
+ print ('Testing SYMPY' )
15
+ if not sympy .test ('sympy/physics/mechanics' ):
16
+ raise Exception ('Tests failed' )
17
+ if not sympy .test ('sympy/liealgebras' ):
18
+ raise Exception ('Tests failed' )
You can’t perform that action at this time.
0 commit comments