summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-03-06 07:15:17 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-03-06 07:15:17 -0500
commit232db5d57c53384162e5704ff405671acd9fe27b (patch)
treeb78416b0f5f99ec93415b99cbc7c072d5df346ce
parentc9f4f661ccb7decb55055d80a1e9a1cbb825b27f (diff)
downloadpython-coveragepy-git-232db5d57c53384162e5704ff405671acd9fe27b.tar.gz
In 3.7, testing libs are issuing warnings. We don't want them to count against us
-rw-r--r--tests/test_process.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index 2cabe0b9..9d4aa56e 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -690,6 +690,11 @@ class ProcessTest(CoverageTest):
import coverage
print("No warnings!")
""")
+
+ # Some of our testing infrastructure can issue warnings.
+ # Turn it all off for the sub-process.
+ self.del_environ("COVERAGE_TESTING")
+
out = self.run_command("python allok.py")
self.assertEqual(out, "No warnings!\n")