From cc35bd70bca835d665c48375bdb5207ec4d54342 Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 28 Dec 2017 12:02:13 +0200 Subject: [PATCH] No need to run coverage on dev machines --- .travis/script.sh | 3 ++- Tests/README.rst | 2 +- setup.cfg | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis/script.sh b/.travis/script.sh index 1473ab07925..a67b9da3b3b 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -7,7 +7,8 @@ python setup.py clean CFLAGS="-coverage" python setup.py build_ext --inplace python selftest.py -python setup.py test +python -m pytest -vx --cov PIL --cov-report term Tests + pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd # Docs diff --git a/Tests/README.rst b/Tests/README.rst index 68c001fdde3..44f6f4792f1 100644 --- a/Tests/README.rst +++ b/Tests/README.rst @@ -33,7 +33,7 @@ Or with coverage:: To run an individual test:: - pytest Tests/test_image.py + pytest -k Tests/test_image.py Run all the tests from the root of the Pillow source distribution:: diff --git a/setup.cfg b/setup.cfg index 4a133839622..8032517f61d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,4 +3,4 @@ test=pytest [metadata] license_file = LICENSE [tool:pytest] -addopts = -vx --cov PIL --cov-report term Tests +addopts = -vx Tests