mirror of https://github.com/python/cpython
gh-76785: Fix test_threading on Non-Subinterpreter Builds (gh-113014)
gh-112982 broke test_threading on one of the s390 buildbots (Fedora Clang Installed). Apparently ImportError is raised (rather than ModuleNotFoundError) for the name part of "from" imports. This fixes that by catching ImportError in test_threading.py.
This commit is contained in:
parent
fe9991bb67
commit
cde1417175
|
@ -28,7 +28,7 @@ from test import support
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from test.support import interpreters
|
from test.support import interpreters
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
interpreters = None
|
interpreters = None
|
||||||
|
|
||||||
threading_helper.requires_working_threading(module=True)
|
threading_helper.requires_working_threading(module=True)
|
||||||
|
|
Loading…
Reference in New Issue