Read existing data coverage on measurement start, save on stop. Only measure PIL code.

This commit is contained in:
hugovk 2014-04-08 12:38:30 +03:00
parent 3e9cde4412
commit ed00b2e6d2

View File

@ -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")