mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40280: Misc fixes for wasm32-emscripten (GH-30722)
This commit is contained in:
parent
ef3ef6fa43
commit
c02e860ee7
9 changed files with 34 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue