Navigation Menu

Skip to content

Commit

Permalink
Added tests for optional dependency of pycosat
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamKJha committed Aug 21, 2019
1 parent a9c305c commit 5688c89
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/test_travis.sh
Expand Up @@ -150,6 +150,10 @@ test_list = [
# cloudpickle
'pickling',
# pycosat
'sympy/logic/',
'sympy/assumptions',
]
blacklist = [
Expand Down Expand Up @@ -187,6 +191,9 @@ doctest_list = [
# codegen
'sympy/codegen/',
# pycosat
'sympy/logic',
]
if not (sympy.test(*test_list, blacklist=blacklist) and sympy.doctest(*doctest_list)):
Expand Down Expand Up @@ -227,6 +234,15 @@ EOF
unset USE_SYMENGINE
fi

if [[ "${TEST_OPT_DEPENDENCY}" == *"pycosat"* ]]; then
cat << EOF | python
print('Testing PYCOSAT')
import sympy
if not (sympy.test('sympy/logic', 'sympy/assumptions') and sympy.doctest('sympy/logic'):
raise Exception('Tests failed')
EOF
fi

if [[ "${TEST_SYMPY}" == "true" ]]; then
# -We:invalid makes invalid escape sequences error in Python 3.6. See
# -#12028.
Expand Down

0 comments on commit 5688c89

Please sign in to comment.