mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Read existing data coverage on measurement start, save on stop. Only measure PIL code.
This commit is contained in:
parent
3e9cde4412
commit
ed00b2e6d2
|
@ -289,7 +289,8 @@ def _setup():
|
|||
atexit.register(report)
|
||||
if "--coverage" in sys.argv:
|
||||
import coverage
|
||||
coverage.start()
|
||||
cov = coverage.coverage(auto_data=True, include="PIL/*")
|
||||
cov .start()
|
||||
if "--log" in sys.argv:
|
||||
_logfile = open("test.log", "a")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user