summaryrefslogtreecommitdiff
path: root/test/test_process.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-12-01 16:57:15 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-12-01 16:57:15 -0500
commitb9c082a8e8f1661c2a152c1db85e658bf98412cc (patch)
treea2daffbc54471685414dab1e2ad28349db3d0943 /test/test_process.py
parentb6c24ae9d590c387419c8bc192f92db983b7a29e (diff)
downloadpython-coveragepy-b9c082a8e8f1661c2a152c1db85e658bf98412cc.tar.gz
A bunch of tweaks to improve coverage
Diffstat (limited to 'test/test_process.py')
-rw-r--r--test/test_process.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_process.py b/test/test_process.py
index 2d92603..27f2cf2 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