summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-23 07:35:28 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-23 07:35:28 -0400
commitddb83b43a2794b47b60ab5956297df0cc45d22a5 (patch)
tree183ecc34cd985d7ed6107d0a02034b623ade59b2 /igor.py
parent73dbce509755c4c379183df6f6c36fb12bec862e (diff)
downloadpython-coveragepy-ddb83b43a2794b47b60ab5956297df0cc45d22a5.tar.gz
Make sure env.TESTING is true during meta-coverage.
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/igor.py b/igor.py
index b3265fd..641d0b8 100644
--- a/igor.py
+++ b/igor.py
@@ -84,6 +84,9 @@ def run_tests(tracer, *nose_args):
def run_tests_with_coverage(tracer, *nose_args):
"""Run tests, but with coverage."""
+ # Need to define this early enough that the first import of env.py sees it.
+ os.environ['COVERAGE_TESTING'] = "True"
+
import coverage
os.environ['COVERAGE_PROCESS_START'] = os.path.abspath('metacov.ini')