diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-01 16:57:15 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-01 16:57:15 -0500 |
commit | 9ad6da410c2dac5a7e6ec5dd793e34bd22988073 (patch) | |
tree | 59524a36c1669fbffde2f171814aa6009042fb77 /test/test_process.py | |
parent | b5d55bd78b613b8386e18c0c4e03782277666325 (diff) | |
download | python-coveragepy-git-9ad6da410c2dac5a7e6ec5dd793e34bd22988073.tar.gz |
A bunch of tweaks to improve coverage
Diffstat (limited to 'test/test_process.py')
-rw-r--r-- | test/test_process.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_process.py b/test/test_process.py index 2d926038..27f2cf27 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -369,8 +369,11 @@ class ProcessTest(CoverageTest): self.assertNotIn("Exception", out) if sys.version_info >= (3, 0): # This only works on 3.x for now. - # It only works with the C tracer. - if os.getenv('COVERAGE_TEST_TRACER', 'c') == 'c': + # It only works with the C tracer, + c_tracer = os.getenv('COVERAGE_TEST_TRACER', 'c') == 'c' + # and if we aren't measuring ourselves. + metacov = os.getenv('COVERAGE_COVERAGE', '') != '' + if c_tracer and not metacov: # pragma: not covered def test_fullcoverage(self): # fullcoverage is a trick to get stdlib modules measured from # the very beginning of the process. Here we import os and |