From 9ad6da410c2dac5a7e6ec5dd793e34bd22988073 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 1 Dec 2012 16:57:15 -0500 Subject: A bunch of tweaks to improve coverage --- test/test_process.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/test_process.py') 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 -- cgit v1.2.1