bpo-40280: Misc fixes for wasm32-emscripten (GH-30722)

This commit is contained in:
Christian Heimes 2022-01-20 19:56:33 +02:00 committed by GitHub
parent ef3ef6fa43
commit c02e860ee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 34 additions and 6 deletions

View file

@ -15,14 +15,14 @@ import time
import unittest
from unittest import mock, skipUnless
from concurrent.futures import ProcessPoolExecutor
try:
# compileall relies on ProcessPoolExecutor if ProcessPoolExecutor exists
# and it can function.
from concurrent.futures import ProcessPoolExecutor
from concurrent.futures.process import _check_system_limits
_check_system_limits()
_have_multiprocessing = True
except NotImplementedError:
except (NotImplementedError, ModuleNotFoundError):
_have_multiprocessing = False
from test import support