Skip to content

Commit 8ef97a9

Browse files
committed
TST: add travis test using python-dbg
python-dbg adds couple extra asserts on reference counts, memory allocation and also enables a few numpy internal asserts.
1 parent 796ac14 commit 8ef97a9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ matrix:
1010
include:
1111
- python: 3.3
1212
env: USE_CHROOT=1 ARCH=i386 DIST=saucy
13+
- python: 3.2
14+
env: USE_DEBUG=1
1315
- python: 2.7
1416
env: NPY_SEPARATE_COMPILATION=0
1517
- python: 3.3

tools/travis-test.sh

+13
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ setup_base()
1919
# have been removed from master. (See gh-2765, gh-2768.) Using 'pip
2020
# install' also has the advantage that it tests that numpy is 'pip
2121
# install' compatible, see e.g. gh-2766...
22+
if [ -z "$USE_DEBUG" ]; then
2223
$PIP install .
24+
else
25+
$PYTHON setup.py build_ext --inplace
26+
fi
2327
}
2428

2529
setup_chroot()
@@ -75,6 +79,9 @@ setup_bento()
7579

7680
run_test()
7781
{
82+
if [ -n "$USE_DEBUG" ]; then
83+
export PYTHONPATH=$PWD
84+
fi
7885
# We change directories to make sure that python won't find the copy
7986
# of numpy in the source directory.
8087
mkdir -p empty
@@ -89,6 +96,12 @@ run_test()
8996
# travis venv tests override python
9097
PYTHON=${PYTHON:-python}
9198
PIP=${PIP:-pip}
99+
100+
if [ -n "$USE_DEBUG" ]; then
101+
sudo apt-get install -qq -y --force-yes python3-dbg python3-dev python3-nose
102+
PYTHON=python3-dbg
103+
fi
104+
92105
export PYTHON
93106
export PIP
94107
if [ "$USE_CHROOT" != "1" ] && [ "$USE_BENTO" != "1" ]; then

0 commit comments

Comments
 (0)