diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-10-03 21:10:45 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-10-04 12:25:02 -0600 |
commit | 43ca904f79ced66552ff02e7e92da1c4566beadd (patch) | |
tree | 8d2544bd891c6952adaef656361cc43b72757960 /tools | |
parent | dc453917978e98dcdf3bbc106b080c80f0a1301e (diff) | |
download | numpy-43ca904f79ced66552ff02e7e92da1c4566beadd.tar.gz |
TST: Add test with python flag -OO.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/travis-test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh index d970daab3..de078edf7 100755 --- a/tools/travis-test.sh +++ b/tools/travis-test.sh @@ -88,6 +88,7 @@ run_test() if [ -n "$USE_DEBUG" ]; then export PYTHONPATH=$PWD fi + # We change directories to make sure that python won't find the copy # of numpy in the source directory. mkdir -p empty @@ -109,6 +110,10 @@ if [ -n "$USE_DEBUG" ]; then PYTHON=python3-dbg fi +if [ -n "$PYTHON_OO" ]; then + PYTHON="$PYTHON -OO" +fi + export PYTHON export PIP if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then |