]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-76785: Fix test_threading on Non-Subinterpreter Builds (gh-113014)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 12 Dec 2023 16:54:39 +0000 (09:54 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Dec 2023 16:54:39 +0000 (16:54 +0000)
commitcde141717578f22947553db776980aa3e8801353
tree4949dd080fd10b7e63a7c608af5ada6c8e3540a4
parentfe9991bb672dd95fb9cd38b5a03180719ac4e722
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.
Lib/test/test_threading.py