]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117649: Raise ImportError for unsupported modules in free-threaded build (#117651)
authorSam Gross <colesbury@gmail.com>
Thu, 11 Apr 2024 19:00:54 +0000 (15:00 -0400)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2024 19:00:54 +0000 (15:00 -0400)
commit25f6ff5d3e92305659db62e7f7545f823f0dbd05
tree3fe6dd2136780028874b6b3cde3ca8c4c903f033
parent39d381f91e93559011587d764c1895ee30efb741
gh-117649: Raise ImportError for unsupported modules in free-threaded build (#117651)

The free-threaded build does not currently support the combination of
single-phase init modules and non-isolated subinterpreters. Ensure that
`check_multi_interp_extensions` is always `True` for subinterpreters in
the free-threaded build so that importing these modules raises an
`ImportError`.
Include/cpython/pylifecycle.h
Lib/test/support/__init__.py
Lib/test/test_capi/test_misc.py
Lib/test/test_import/__init__.py
Lib/test/test_importlib/test_util.py
Lib/test/test_interpreters/test_api.py
Lib/test/test_threading.py
Python/import.c
Python/pylifecycle.c