Use pytest instead of nose

This commit is contained in:
Hugo 2017-10-26 18:07:34 +03:00 committed by wiredfool
parent cdab7f2039
commit db760c1284

View File

@ -17,7 +17,7 @@ co:
coverage: coverage:
coverage erase coverage erase
coverage run --parallel-mode --include=PIL/* selftest.py coverage run --parallel-mode --include=PIL/* selftest.py
nosetests --with-cov --cov='PIL/' --cov-report=html Tests/test_*.py python -m pytest --cov PIL --cov-append --cov-report html Tests
# Doesn't combine properly before report, writing report instead of displaying invalid report. # Doesn't combine properly before report, writing report instead of displaying invalid report.
rm -r htmlcov || true rm -r htmlcov || true
coverage combine coverage combine
@ -81,7 +81,7 @@ release-test:
$(MAKE) install-req $(MAKE) install-req
python setup.py develop python setup.py develop
python selftest.py python selftest.py
nosetests Tests/test_*.py python -m pytest Tests
python setup.py install python setup.py install
python test-installed.py python test-installed.py
check-manifest check-manifest