Skip to content

Commit 7d3858a

Browse files
another try at fixing resource warnings
1 parent bdd31b4 commit 7d3858a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_asyncio/test_subprocess.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,7 @@ async def cancel_make_transport():
558558
# "Exception during subprocess creation, kill the subprocess"
559559
with test_utils.disable_logger():
560560
self.loop.run_until_complete(cancel_make_transport())
561-
test_utils.run_briefly(self.loop)
562-
test_utils.run_briefly(self.loop)
563-
test_utils.run_briefly(self.loop)
561+
self.loop.run_until_complete(asyncio.sleep(0.1))
564562

565563
def test_close_kill_running(self):
566564

0 commit comments

Comments
 (0)