We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e103aac commit c50cccfCopy full SHA for c50cccf
Lib/test/eintrdata/eintr_tester.py
@@ -83,6 +83,9 @@ def _test_wait_multiple(self, wait_func):
83
processes = [self.new_sleep_process() for _ in range(num)]
84
for _ in range(num):
85
wait_func()
86
+ # Call the Popen method to avoid a ResourceWarning
87
+ for proc in processes:
88
+ proc.wait()
89
90
def test_wait(self):
91
self._test_wait_multiple(os.wait)
@@ -94,6 +97,8 @@ def test_wait3(self):
94
97
def _test_wait_single(self, wait_func):
95
98
proc = self.new_sleep_process()
96
99
wait_func(proc.pid)
100
101
102
103
def test_waitpid(self):
104
self._test_wait_single(lambda pid: os.waitpid(pid, 0))
0 commit comments