diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-15 09:29:33 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-15 09:29:33 -0500 |
commit | 1c47034843c1008642f5364094f872197cb87e65 (patch) | |
tree | a69249c3983b2ac9ebc819e906a5187792ab18b5 | |
parent | 2a94740c01f57986719f63f41ac735d056c5b1b3 (diff) | |
download | python-coveragepy-1c47034843c1008642f5364094f872197cb87e65.tar.gz |
Use the test method for setting the environment, so we can clean it
-rw-r--r-- | tests/test_testing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index c5858bf..d91de28 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) |