mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Add sitecustomize.py to fix subprocess coverage reporting
This commit is contained in:
parent
8f199eb40c
commit
a0a43494d0
2 changed files with 9 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,6 +1,5 @@
|
|||
.coverage
|
||||
coverage.xml
|
||||
sitecustomize.py
|
||||
docs/_build
|
||||
*.egg-info
|
||||
*.egg
|
||||
|
|
|
|||
9
sitecustomize.py
Normal file
9
sitecustomize.py
Normal 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()
|
||||
Loading…
Reference in a new issue