diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-18 20:11:29 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-18 20:11:29 -0500 |
| commit | 659e2bd057382e4819f38c2c77ff3b7783d63c6b (patch) | |
| tree | 64b1283b99ab62091108c7f4949a9f5925675a2e /setuptools/tests/test_easy_install.py | |
| parent | 43ffa78752de38190b2480b68d9ad908cf1b7fa5 (diff) | |
| download | python-setuptools-git-659e2bd057382e4819f38c2c77ff3b7783d63c6b.tar.gz | |
Adding test capturing failure where sys.executable loses backslashes on Windows. Ref #331.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 5e36044d..91461364 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -517,3 +517,11 @@ class TestCommandSpec: cmd = CommandSpec.from_param('/usr/bin/env my-python') assert len(cmd) == 2 assert '"' not in cmd.as_header() + + def test_sys_executable(self): + """ + CommandSpec.from_string(sys.executable) should contain just that param. + """ + cmd = CommandSpec.from_string(sys.executable) + assert len(cmd) == 1 + assert cmd[0] == sys.executable |
