Skip to content

Commit b93e38e

Browse files
committed
Update tests
1 parent 792c19a commit b93e38e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_cli/test_script.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def test_help():
8181

8282
@pytest.mark.parametrize("command", test_commands)
8383
def test_script(command):
84-
command = command.replace("\n", " ")
85-
proc = subprocess.Popen(shlex.split(command), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
84+
proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
8685
stdout, stderr = proc.communicate()
8786
assert not stderr, stderr
8887
assert stdout, stdout

0 commit comments

Comments
 (0)