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 | 36a1630ab9b54975369a487595380867a470c06e (patch) | |
tree | 5cd3154d6a4a91dede6a6688f9e814c726ed10da /tests/test_testing.py | |
parent | 427de553d10f852fd74d224bc35a8ebf14e86ee0 (diff) | |
download | python-coveragepy-git-36a1630ab9b54975369a487595380867a470c06e.tar.gz |
Use the test method for setting the environment, so we can clean it
Diffstat (limited to 'tests/test_testing.py')
-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 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) |