Skip to content

Commit c629ca0

Browse files
authored
Merge pull request #196 from ShikharJ/Test
Test specific parts of SymPy
2 parents a267427 + 52875a6 commit c629ca0

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ env:
2626
## executed.
2727
matrix:
2828
# 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"
3131

3232
# Release builds:
3333
- PYTHON_VERSION="2.7" BUILD_SHARED_LIBS="yes"

bin/test_python.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
import os
2+
TEST_SYMPY = os.getenv('TEST_SYMPY', False)
3+
14
import symengine
25
if not symengine.test():
36
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')

0 commit comments

Comments
 (0)