From a311068eba1d348b43524271f273b4d6e0597989 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Wed, 16 Sep 2026 18:55:58 +0300 Subject: [PATCH] fix: test_get_process_children__with_child is corrected It fails from time to time: RuntimeError: Unknown child_cmdline [] --- tests/test_os_ops_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_os_ops_common.py b/tests/test_os_ops_common.py index 4ab1b4e..50a9ef2 100644 --- a/tests/test_os_ops_common.py +++ b/tests/test_os_ops_common.py @@ -2832,7 +2832,7 @@ def test_get_process_children__with_child( script = ( "import time, os, subprocess; " "s = str(os.getpid()); " - "p = subprocess.Popen('exec sleep 60', shell=True, stdout=subprocess.PIPE); " + "p = subprocess.Popen(['sleep', '60'], shell=False, stdout=subprocess.PIPE); " "s += ':' + str(p.pid); " "print(s, flush=True); " "time.sleep(60)"