diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-23 07:35:28 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-23 07:35:28 -0400 |
| commit | 2cc4228e4b7543418d7e14d9eca66f7263870cf3 (patch) | |
| tree | 3fa2d95c6153276eaf95e01e4d5b2e27fa6f7d1b /igor.py | |
| parent | b5d3a77d238c98ae85339e4c443627b60ddc4235 (diff) | |
| download | python-coveragepy-git-2cc4228e4b7543418d7e14d9eca66f7263870cf3.tar.gz | |
Make sure env.TESTING is true during meta-coverage.
Diffstat (limited to 'igor.py')
| -rw-r--r-- | igor.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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') |
