summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
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 b3265fda..641d0b80 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')