Skip to content

Commit c2caa6f

Browse files
ericsnowcurrentlyaisk
authored andcommitted
pythongh-76785: Fix test_threading on Non-Subinterpreter Builds (pythongh-113014)
pythongh-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.
1 parent 2203b25 commit c2caa6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_threading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
try:
3030
from test.support import interpreters
31-
except ModuleNotFoundError:
31+
except ImportError:
3232
interpreters = None
3333

3434
threading_helper.requires_working_threading(module=True)

0 commit comments

Comments
 (0)