Make run-tests.sh call doctest module directly

This makes it fail correctly.  Also, run doctest in verbose mode.
This commit is contained in:
Behdad Esfahbod 2015-03-03 10:47:20 -08:00
parent f439e7b07d
commit 47cd66e43b

View File

@ -5,7 +5,7 @@ TESTS=`git grep -l doctest Lib/`
ret=0
for test in $TESTS; do
echo "Running tests in $test"
if ! python $test; then
if ! python -m doctest -v $test; then
let ret=ret+1
fi
done