summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-24 10:23:27 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-24 10:23:59 -0500
commit674204fc958f30815fe482fe1ed36d01eb74c489 (patch)
treeb4439d08a1c0ed25cc418fa03bad39b60abb65c3 /igor.py
parent61f6ee5c3b2f99a02c3b5988123e74e1d3dbc8ba (diff)
downloadpython-coveragepy-git-674204fc958f30815fe482fe1ed36d01eb74c489.tar.gz
test: more flexibility in setting a static context locally
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/igor.py b/igor.py
index c02e14bf..248b93f5 100644
--- a/igor.py
+++ b/igor.py
@@ -163,6 +163,8 @@ def run_tests_with_coverage(tracer, *runner_args):
os.environ['COVERAGE_HOME'] = os.getcwd()
context = os.environ.get('COVERAGE_CONTEXT')
if context:
+ if context[0] == "$":
+ context = os.environ[context[1:]]
os.environ['COVERAGE_CONTEXT'] = context + "." + tracer
# Create the .pth file that will let us measure coverage in sub-processes.