summaryrefslogtreecommitdiff
path: root/tools/travis-test.sh
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-08-26 17:38:16 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2019-09-25 19:17:59 -0700
commit7f1293f7100d47824c12281238ce42aeef69167c (patch)
tree97f8ab3d7c341e63057dbdd44ecb1aa41d3dec49 /tools/travis-test.sh
parentaa3625f86302513fb7ca7288298e7cbe59d62fdd (diff)
downloadnumpy-7f1293f7100d47824c12281238ce42aeef69167c.tar.gz
MAINT: Avoid all BytesWarning
A BytesWarning can be emitted when bytes are and strings are mismatched. Catching BytesWarning ensures a better boundary between str and bytes type. The test suite is now run with the -b flag to emit this warning. Fixes #9308
Diffstat (limited to 'tools/travis-test.sh')
-rwxr-xr-xtools/travis-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh
index 1eda43c31..1f47c8018 100755
--- a/tools/travis-test.sh
+++ b/tools/travis-test.sh
@@ -88,7 +88,7 @@ run_test()
if [ -n "$RUN_FULL_TESTS" ]; then
export PYTHONWARNINGS="ignore::DeprecationWarning:virtualenv"
- $PYTHON ../runtests.py -n -v --durations 10 --mode=full $COVERAGE_FLAG
+ $PYTHON -b ../runtests.py -n -v --durations 10 --mode=full $COVERAGE_FLAG
else
# disable --durations temporarily, pytest currently aborts
# when that is used with python3.6-dbg