summaryrefslogtreecommitdiff
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
commitd51204698bbc9048ce29f31018245b3fb27282b0 (patch)
tree20ab2fd19554a1259956a968f0ef6e6111acdce6
parent6e1c1e871ad6ebc47b124add3be55c6e515b72a0 (diff)
downloadpython-setuptools-bitbucket-d51204698bbc9048ce29f31018245b3fb27282b0.tar.gz
Adding test capturing failure where sys.executable loses backslashes on Windows. Ref #331.
-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