Mercurial > p > roundup > code
changeset 7448:58c1d1724c9b
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 04 Jun 2023 23:18:45 -0400 |
| parents | 010eb3b00877 |
| children | 24e4bb7f2884 |
| files | .travis.yml |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/.travis.yml Sun Jun 04 22:38:29 2023 -0400 +++ b/.travis.yml Sun Jun 04 23:18:45 2023 -0400 @@ -162,8 +162,9 @@ script: - PATH=$VIRTUAL_ENV/bin:$PATH - export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH + - python -c "import sys; print('python version: ', sys.version)" - if [[ "$TRAVIS_PYTHON_VERSION" != "2."* ]]; then - py.test -r a + python -m pytest -r a --durations=20 -W default -W "ignore:SelectableGroups:DeprecationWarning" @@ -174,7 +175,7 @@ -v --maxfail=5 test/ --cov=roundup; fi - if [[ "$TRAVIS_PYTHON_VERSION" == "2."* ]]; then - py.test -v -r a --maxfail=5 test/ --cov=roundup; + python -m pytest -v -r a --maxfail=5 test/ --cov=roundup; fi - ./setup.py build_doc
