Commit 659e2bd0 authored by Jason R. Coombs's avatar Jason R. Coombs

Adding test capturing failure where sys.executable loses backslashes on Windows. Ref #331.

parent 43ffa787
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment