summaryrefslogtreecommitdiff
path: root/tests
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
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')
-rw-r--r--tests/coveragetest.py7
-rw-r--r--tests/test_process.py3
2 files changed, 3 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
diff --git a/tests/test_process.py b/tests/test_process.py
index d3f7d56f..4a1e6348 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -605,6 +605,9 @@ class ProcessTest(CoverageTest):
def test_warnings_trace_function_changed_with_threads(self):
# https://bitbucket.org/ned/coveragepy/issue/164
+ if env.METACOV:
+ self.skipTest("Can't test tracers changing during metacoverage")
+
self.make_file("bug164.py", """\
import threading
import time