summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-10-03 21:10:45 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-10-04 12:25:02 -0600
commit43ca904f79ced66552ff02e7e92da1c4566beadd (patch)
tree8d2544bd891c6952adaef656361cc43b72757960 /tools
parentdc453917978e98dcdf3bbc106b080c80f0a1301e (diff)
downloadnumpy-43ca904f79ced66552ff02e7e92da1c4566beadd.tar.gz
TST: Add test with python flag -OO.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-test.sh5
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