summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-15 09:29:33 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-15 09:29:33 -0500
commit36a1630ab9b54975369a487595380867a470c06e (patch)
tree5cd3154d6a4a91dede6a6688f9e814c726ed10da
parent427de553d10f852fd74d224bc35a8ebf14e86ee0 (diff)
downloadpython-coveragepy-git-36a1630ab9b54975369a487595380867a470c06e.tar.gz
Use the test method for setting the environment, so we can clean it
-rw-r--r--tests/test_testing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py
index c5858bf1..d91de28d 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -117,7 +117,7 @@ class CoverageTestTest(CoverageTest):
def test_sub_python_is_this_python(self):
# Try it with a Python command.
- os.environ['COV_FOOBAR'] = 'XYZZY'
+ self.set_environ('COV_FOOBAR', 'XYZZY')
self.make_file("showme.py", """\
import os, sys
print(sys.executable)