summaryrefslogtreecommitdiff
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
parentdc453917978e98dcdf3bbc106b080c80f0a1301e (diff)
downloadnumpy-43ca904f79ced66552ff02e7e92da1c4566beadd.tar.gz
TST: Add test with python flag -OO.
-rw-r--r--.travis.yml2
-rwxr-xr-xtools/travis-test.sh5
2 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index deabf611e..12a443d41 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,7 @@ matrix:
- python: 3.2
env: USE_DEBUG=1
- python: 2.7
- env: NPY_SEPARATE_COMPILATION=0
+ env: NPY_SEPARATE_COMPILATION=0 PYTHON_OO=1
- python: 3.3
env: NPY_SEPARATE_COMPILATION=0
- python: 2.7
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