Skip to content

Commit d7f0af9

Browse files
gh-157259: Skip subprocess call graph test on platforms without subprocess support
1 parent d70ede3 commit d7f0af9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Lib/test/test_asyncio/test_graph.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import io
33
import sys
44
import unittest
5+
from test import support
56
from unittest import mock
67

78

@@ -450,6 +451,7 @@ async def main(t):
450451
]
451452
])
452453

454+
@support.requires_subprocess()
453455
async def test_stack_subprocess_connect_pipes(self):
454456
# gh-157259: create_subprocess_exec must record the awaiting waiter / task
455457
# on the internal _connect_pipes task
@@ -477,7 +479,7 @@ async def mocked_connect(*args, **kwargs):
477479
name='spawn',
478480
)
479481

480-
await in_connect_pipes.wait()
482+
await asyncio.wait_for(in_connect_pipes.wait(), timeout=support.SHORT_TIMEOUT)
481483
self.assertIsNotNone(pipe_task)
482484

483485
stack = capture_test_stack(fut=pipe_task)

0 commit comments

Comments
 (0)