Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions tests/test_os_ops_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,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, text=True); "
"p = subprocess.Popen('exec sleep 60', shell=True, stdout=subprocess.PIPE); "
"s += ':' + str(p.pid); "
"print(s, flush=True); "
"time.sleep(60)"
Expand All @@ -2480,7 +2480,6 @@ def test_get_process_children__with_child(

assert isinstance(p1, subprocess.Popen)
assert p1.stdout is not None
p1.pid

line = p1.stdout.readline()
assert line is not None
Expand Down Expand Up @@ -2526,9 +2525,9 @@ def test_get_process_children__with_three_children(
script = (
"import time, os, subprocess; "
"s = str(os.getpid()); "
"p1 = subprocess.Popen('exec sleep 60', shell=True, stdout=subprocess.PIPE, text=True); "
"p2 = subprocess.Popen('exec sleep 60', shell=True, stdout=subprocess.PIPE, text=True); "
"p3 = subprocess.Popen('exec sleep 60', shell=True, stdout=subprocess.PIPE, text=True); "
"p1 = subprocess.Popen('exec sleep 60', shell=True, stdout=subprocess.PIPE); "
"p2 = subprocess.Popen('exec sleep 60', shell=True, stdout=subprocess.PIPE); "
"p3 = subprocess.Popen('exec sleep 60', shell=True, stdout=subprocess.PIPE); "
"s += ':' + str(p1.pid) + ':' + str(p2.pid) + ':' + str(p3.pid); "
"print(s, flush=True); "
"time.sleep(60)"
Expand Down