Skip to content

Commit cde1417

Browse files
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.
1 parent fe9991b commit cde1417

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)