summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)