Skip to content

Commit 96a6cbc

Browse files
committed
bpo-32126: Skip asyncio test when sem_open() is not functional
1 parent 0f86cd3 commit 96a6cbc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎Lib/test/test_asyncio/test_events.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,8 @@ def tearDown(self):
21562156
super().tearDown()
21572157

21582158
def test_get_event_loop_new_process(self):
2159+
# Skip the test if the sem_open() implementation is broken.
2160+
support.import_module('multiprocessing.synchronize')
21592161
async def main():
21602162
pool = concurrent.futures.ProcessPoolExecutor()
21612163
result = await self.loop.run_in_executor(
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Skip test_get_event_loop_new_process in test.test_asyncio.test_events when
2+
sem_open() is not functional.

0 commit comments

Comments
 (0)