Skip to content

Commit 37076b2

Browse files
Make test_run_string pass when the default shell is not bash (#137)
1 parent 63778f8 commit 37076b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
def test_run_string() -> None:
1212
"""Validate run() called with a single string command."""
13-
cmd = "echo 111 && >&2 echo 222"
13+
cmd = 'bash -c "echo 111 && >&2 echo 222"'
1414
old_result = subprocess.run(
1515
cmd,
1616
shell=True,

0 commit comments

Comments
 (0)