diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 22:29:37 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 22:29:37 -0500 |
| commit | 0ad48553589fc68faeb7a5fc2f76da128249ac86 (patch) | |
| tree | 0decbd493087f88b443081dcb5709b86a4ca0415 /setuptools/tests/test_easy_install.py | |
| parent | 4356a2dc99a74be0d970f63e045eba40f463695d (diff) | |
| download | python-setuptools-git-0ad48553589fc68faeb7a5fc2f76da128249ac86.tar.gz | |
Add test capturing expectation around sys.executable having spaces in the name.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 3a8ddbfb..e1f06788 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -499,3 +499,9 @@ class TestCommandSpec: cmd = CommandSpec(['python']) cmd_new = CommandSpec.from_param(cmd) assert cmd is cmd_new + + def test_from_environment_with_spaces_in_executable(self): + with mock.patch('sys.executable', TestScriptHeader.exe_with_spaces): + cmd = CommandSpec.from_environment() + assert len(cmd) == 1 + assert cmd.as_header().startswith('#!"') |
