summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-18 20:11:29 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-18 20:11:29 -0500
commit659e2bd057382e4819f38c2c77ff3b7783d63c6b (patch)
tree64b1283b99ab62091108c7f4949a9f5925675a2e /setuptools/tests/test_easy_install.py
parent43ffa78752de38190b2480b68d9ad908cf1b7fa5 (diff)
downloadpython-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.py8
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