summaryrefslogtreecommitdiff
path: root/setuptools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-06-23 20:20:13 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-06-23 20:20:13 -0400
commitea96c15d03dea659cb3cd572e1246bb15ec68e1c (patch)
treefa647623399198c86f4684e14918704a1350bc19 /setuptools
parent47413a2792fb772f4bdcf7a61a843b495464feae (diff)
downloadpython-setuptools-git-ea96c15d03dea659cb3cd572e1246bb15ec68e1c.tar.gz
Conditionally remove __PYVENV_LAUNCHER__
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/tests/test_easy_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index a690315d..66601bfe 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -491,7 +491,7 @@ class TestCommandSpec:
@mock.patch('sys.executable', TestScriptHeader.exe_with_spaces)
@mock.patch.dict(os.environ)
def test_from_environment_with_spaces_in_executable(self):
- del os.environ['__PYVENV_LAUNCHER__']
+ os.environ.pop('__PYVENV_LAUNCHER__', None)
cmd = ei.CommandSpec.from_environment()
assert len(cmd) == 1
assert cmd.as_header().startswith('#!"')