Add sitecustomize.py to fix subprocess coverage reporting

This commit is contained in:
Daniel Hahler 2018-08-16 17:12:33 +02:00
parent 8f199eb40c
commit a0a43494d0
2 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,6 +1,5 @@
.coverage
coverage.xml
sitecustomize.py
docs/_build
*.egg-info
*.egg

9
sitecustomize.py Normal file
View file

@ -0,0 +1,9 @@
"""Setup coverage tracking for subprocesses.
Any ImportError is silently ignored.
Requires COVERAGE_PROCESS_START in the environments, which gets set in
tox.ini.
"""
import coverage
coverage.process_startup()