summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-11-29 07:51:56 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-12-01 07:32:33 -0500
commit10e41ab0dc165b3fd010345ab0fb1ed319d2f230 (patch)
treeb42b42c0eb5af92f39b8b20dd8914bc5001043df /tests/coveragetest.py
parent5901967e95ae72ec2b5be05bc08e1924e08a604b (diff)
downloadpython-coveragepy-git-10e41ab0dc165b3fd010345ab0fb1ed319d2f230.tar.gz
I'm not sure why I was deleting these meta env vars
Don't we want to measure the coverage of subprocesses we start in tests?
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r--tests/coveragetest.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index 85af3623..1a2983e6 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -431,13 +431,6 @@ class CoverageTest(
pypath += testmods + os.pathsep + zipfile
self.set_environ(pythonpath_name, pypath)
- # There are environment variables that we set when we are running the
- # coverage test suite under coverage. We don't want these environment
- # variables to leak into subprocesses we start for a test. Delete them
- # before running the subprocess command.
- self.del_environ("COVERAGE_COVERAGE")
- self.del_environ("COVERAGE_PROCESS_START")
-
self.last_command_status, self.last_command_output = run_command(cmd)
print(self.last_command_output)
return self.last_command_status, self.last_command_output