From ea4065c04d95cf4860ef257508d6e03c6e68f9a1 Mon Sep 17 00:00:00 2001 From: "Jeong, YunWon" Date: Thu, 6 Feb 2025 20:41:34 +0900 Subject: [PATCH] fix windows sleep --- extra_tests/snippets/stdlib_subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra_tests/snippets/stdlib_subprocess.py b/extra_tests/snippets/stdlib_subprocess.py index 96ead765836..b0323c8840e 100644 --- a/extra_tests/snippets/stdlib_subprocess.py +++ b/extra_tests/snippets/stdlib_subprocess.py @@ -16,7 +16,7 @@ def echo(text): return ["cmd", "/C", f"echo {text}"] def sleep(secs): # TODO: make work in a non-unixy environment (something with timeout.exe?) - return ["sleep", str(secs)] + return ["powershell", "/C", "sleep", str(secs)] p = subprocess.Popen(echo("test"))