Skip to content

Commit 751404c

Browse files
committed
py.test existing status 1; try using python -m pytest instead.
It's only failing for the non 2.x case under nightly (3.12), but this change should have been made a while ago anyway. Also print out the python version as part of the run.
1 parent b17ef30 commit 751404c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ before_script:
162162
script:
163163
- PATH=$VIRTUAL_ENV/bin:$PATH
164164
- export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH
165+
- python -c "import sys; print('python version: ', sys.version)"
165166
- if [[ "$TRAVIS_PYTHON_VERSION" != "2."* ]]; then
166-
py.test -r a
167+
python -m pytest -r a
167168
--durations=20
168169
-W default
169170
-W "ignore:SelectableGroups:DeprecationWarning"
@@ -174,7 +175,7 @@ script:
174175
-v --maxfail=5 test/ --cov=roundup;
175176
fi
176177
- if [[ "$TRAVIS_PYTHON_VERSION" == "2."* ]]; then
177-
py.test -v -r a --maxfail=5 test/ --cov=roundup;
178+
python -m pytest -v -r a --maxfail=5 test/ --cov=roundup;
178179
fi
179180
- ./setup.py build_doc
180181

0 commit comments

Comments
 (0)