From 8f5cc6174c6d1f98f035ae1e6252115cd484c35c 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 96ead7658..b0323c884 100644 --- a/extra_tests/snippets/stdlib_subprocess.py +++ b/extra_tests/snippets/stdlib_subprocess.py @@ -16,7 +16,7 @@ else: 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"))