mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-28 17:03:13 +03:00
Use tester.py's built-in coverage and coverage.py's built-in cleanup
This commit is contained in:
parent
e4b8cdac4c
commit
3e9cde4412
|
@ -30,7 +30,7 @@ script:
|
||||||
- python setup.py clean
|
- python setup.py clean
|
||||||
- python setup.py build_ext --inplace
|
- python setup.py build_ext --inplace
|
||||||
- coverage run --append --include=PIL/* selftest.py
|
- coverage run --append --include=PIL/* selftest.py
|
||||||
- coverage run --append --include=PIL/* Tests/run.py
|
- python Tests/run.py --coverage
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- coverage report
|
- coverage report
|
||||||
|
|
|
@ -285,13 +285,6 @@ def _setup():
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if "--coverage" in sys.argv:
|
|
||||||
import coverage
|
|
||||||
coverage.stop()
|
|
||||||
# The coverage module messes up when used from inside an
|
|
||||||
# atexit handler. Do an explicit save to make sure that
|
|
||||||
# we actually flush the coverage cache.
|
|
||||||
coverage.the_coverage.save()
|
|
||||||
import atexit, sys
|
import atexit, sys
|
||||||
atexit.register(report)
|
atexit.register(report)
|
||||||
if "--coverage" in sys.argv:
|
if "--coverage" in sys.argv:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user