bpo-32126: Skip asyncio test when sem_open() is not functional (GH-4559)

This commit is contained in:
xdegaye 2017-11-26 10:31:44 +01:00 committed by GitHub
parent 4274609e18
commit a6fba9b827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -2155,6 +2155,10 @@ else:
super().tearDown()
def test_get_event_loop_new_process(self):
# Issue bpo-32126: The multiprocessing module used by
# ProcessPoolExecutor is not functional when the
# multiprocessing.synchronize module cannot be imported.
support.import_module('multiprocessing.synchronize')
async def main():
pool = concurrent.futures.ProcessPoolExecutor()
result = await self.loop.run_in_executor(