Skip to content

Commit 4f46ba2

Browse files
committed
fix for windows
1 parent 7c52f6f commit 4f46ba2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_wrapper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ def test_commandwrapper_runs_argv_without_shell(stub_env, capfd):
102102

103103

104104
def test_run_command_brace_expands_to_env_value(stub_env, capfd):
105-
cmd = ["cmd", "/c", "echo {ROOT}"] if IS_WINDOWS else ["echo", "{ROOT}"]
106-
rc = run_command(cmd, namespace="hello")
105+
rc = run_command(["echo", "{ROOT}"], namespace="hello")
107106
out, err = capfd.readouterr()
108107
assert rc == 0
109108
assert "{ROOT}" not in out

0 commit comments

Comments
 (0)