diff options
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 |