Skip to content

Commit 8f5cc61

Browse files
committed
fix windows sleep
1 parent 29d014a commit 8f5cc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extra_tests/snippets/stdlib_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def echo(text):
1616
return ["cmd", "/C", f"echo {text}"]
1717
def sleep(secs):
1818
# TODO: make work in a non-unixy environment (something with timeout.exe?)
19-
return ["sleep", str(secs)]
19+
return ["powershell", "/C", "sleep", str(secs)]
2020

2121
p = subprocess.Popen(echo("test"))
2222

0 commit comments

Comments
 (0)