diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-06-23 20:20:13 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-06-23 20:20:13 -0400 |
commit | c30958a953677e28023320ae8efd1e34693369a9 (patch) | |
tree | 24f842f03159139ca5e21b2dddbadcb584b3a9a3 | |
parent | 372b24d4e31c4db8b02fe41b4d8ea2d6f7e3cae9 (diff) | |
download | python-setuptools-bitbucket-c30958a953677e28023320ae8efd1e34693369a9.tar.gz |
Conditionally remove __PYVENV_LAUNCHER__
-rw-r--r-- | setuptools/tests/test_easy_install.py | 2 |
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('#!"') |