summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorFelix Krull <f_krull@gmx.de>2016-06-25 22:44:05 +0200
committerFelix Krull <f_krull@gmx.de>2016-06-26 01:25:53 +0200
commit6baa4a140f77d17e131febb3d76d0dae3ca4dfc9 (patch)
tree466221f1893b1ae421b1211434dc089530fc3252 /setuptools/tests/test_easy_install.py
parent45597769a552c9bf9f7e425a6a9d3c26064841cf (diff)
downloadpython-setuptools-git-6baa4a140f77d17e131febb3d76d0dae3ca4dfc9.tar.gz
Remove CommandSpec.from_param test using sys.executable.
It was based on the assumption that CommandSpec.from_param(sys.executable) should always return a 1-element list. Since from_param parses the argument and sys.executable may contain unquoted spaces, this simply can't be guaranteed.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index c903d2bd..7e77e819 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -591,15 +591,6 @@ class TestCommandSpec:
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.
- """
- writer = ei.ScriptWriter.best()
- cmd = writer.command_spec_class.from_string(sys.executable)
- assert len(cmd) == 1
- assert cmd[0] == sys.executable
-
class TestWindowsScriptWriter:
def test_header(self):