From a0a43494d0d2689bc320f8e91dc0d2cea468424f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 16 Aug 2018 17:12:33 +0200 Subject: [PATCH] Add sitecustomize.py to fix subprocess coverage reporting --- .gitignore | 1 - sitecustomize.py | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 sitecustomize.py diff --git a/.gitignore b/.gitignore index 494e06b..283c869 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .coverage coverage.xml -sitecustomize.py docs/_build *.egg-info *.egg diff --git a/sitecustomize.py b/sitecustomize.py new file mode 100644 index 0000000..9b5135d --- /dev/null +++ b/sitecustomize.py @@ -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()