Fix Travis builds test is deprecated and broken.  AFAIU it still uses
easy_install, which doesn't pay attention to python_requires of
dependencies, so when a transitive dependency drops Python 2.7 support
with a python_requires, pip can handle that, but easy_install can't.

I did not spend too much time investigating why exactly test
breaks: life's too short.  It's deprecated and that's reason enough to
stop using it.

I'm going to use pytest instead (because nose is also deprecated, lol).
I'm not going to switch to pytest wholesale because that would break
Windows builds (see #92).
This commit is contained in:
Marius Gedminas 2020-01-23 10:15:12 +02:00
parent c9df78bd89
commit f6f64bf784
1 changed files with 4 additions and 2 deletions

View File

@ -14,9 +14,11 @@ env:
- pip install coverage coveralls mock flake8 toml
- pip install -U pip
- pip install coverage coveralls pytest flake8
- pip install -e .[test]
- SKIP_NO_TESTS=1 coverage run test -q
- SKIP_NO_TESTS=1 coverage run -m pytest
- coverage report -m
- python
- flake8 *.py