diff options
author | saurabh <e.samehta@gmail.com> | 2016-11-01 02:28:33 +0100 |
---|---|---|
committer | saurabh <e.samehta@gmail.com> | 2016-11-01 02:58:36 +0100 |
commit | f685f1a83de2d8fc1e0f48167a204248b6656a63 (patch) | |
tree | 1d24d307936f03e558a4a661d7dd1560a07437cf /tools | |
parent | 6ae842001332f532e0c76815d49336ecc2b88dde (diff) | |
download | python-numpy-f685f1a83de2d8fc1e0f48167a204248b6656a63.tar.gz python-numpy-f685f1a83de2d8fc1e0f48167a204248b6656a63.tar.bz2 python-numpy-f685f1a83de2d8fc1e0f48167a204248b6656a63.zip |
ENH: Deprecation warnings for `/` integer division when running python -3
When python is invoked with switch -3, it emits waring "classic int division"
for strict integer divisions. The same behavior is now implemented to numpy
with this fix
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 2eef17d41..91c871560 100755 --- a/tools/travis-test.sh +++ b/tools/travis-test.sh @@ -21,6 +21,11 @@ if [ -n "$PYTHON_OO" ]; then PYTHON="${PYTHON} -OO" fi + +if [ -n "$PY3_COMPATIBILITY_CHECK" ]; then + PYTHON="${PYTHON} -3" +fi + # make some warnings fatal, mostly to match windows compilers werrors="-Werror=declaration-after-statement -Werror=vla " werrors+="-Werror=nonnull -Werror=pointer-arith" |