diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-12-12 16:54:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 16:54:39 (GMT) |
commit | cde141717578f22947553db776980aa3e8801353 (patch) | |
tree | 4949dd080fd10b7e63a7c608af5ada6c8e3540a4 /Lib/test/test_threading.py | |
parent | fe9991bb672dd95fb9cd38b5a03180719ac4e722 (diff) | |
download | cpython-cde141717578f22947553db776980aa3e8801353.zip cpython-cde141717578f22947553db776980aa3e8801353.tar.gz cpython-cde141717578f22947553db776980aa3e8801353.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r-- | Lib/test/test_threading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index a5744a4..3060af4 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -28,7 +28,7 @@ from test import support try: from test.support import interpreters -except ModuleNotFoundError: +except ImportError: interpreters = None threading_helper.requires_working_threading(module=True) |