Skip to content

Commit 24b235f

Browse files
committed
bpo-38323: Remove test_cancel_make_subprocess_transport_exec as it has a rance condicion
1 parent 2780df4 commit 24b235f

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Lib/test/test_asyncio/test_subprocess.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -424,23 +424,6 @@ async def cancel_wait():
424424

425425
self.loop.run_until_complete(cancel_wait())
426426

427-
def test_cancel_make_subprocess_transport_exec(self):
428-
429-
async def cancel_make_transport():
430-
coro = asyncio.create_subprocess_exec(*PROGRAM_BLOCKED)
431-
task = self.loop.create_task(coro)
432-
433-
self.loop.call_soon(task.cancel)
434-
try:
435-
await task
436-
except asyncio.CancelledError:
437-
pass
438-
439-
# ignore the log:
440-
# "Exception during subprocess creation, kill the subprocess"
441-
with test_utils.disable_logger():
442-
self.loop.run_until_complete(cancel_make_transport())
443-
444427
def test_cancel_post_init(self):
445428

446429
async def cancel_make_transport():

0 commit comments

Comments
 (0)