Skip to content

Commit a6fba9b

Browse files
authored
bpo-32126: Skip asyncio test when sem_open() is not functional (GH-4559)
1 parent 4274609 commit a6fba9b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Lib/test/test_asyncio/test_events.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,6 +2155,10 @@ def tearDown(self):
21552155
super().tearDown()
21562156

21572157
def test_get_event_loop_new_process(self):
2158+
# Issue bpo-32126: The multiprocessing module used by
2159+
# ProcessPoolExecutor is not functional when the
2160+
# multiprocessing.synchronize module cannot be imported.
2161+
support.import_module('multiprocessing.synchronize')
21582162
async def main():
21592163
pool = concurrent.futures.ProcessPoolExecutor()
21602164
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)