Content-Length: 206829 | pFad | http://github.com/Glyphack/cpython/commit/6e38b202980676500edc5b30107cab2bbd461571

92 gh-76785: Fix test_threading on Non-Subinterpreter Builds (gh-113014) · Glyphack/cpython@6e38b20 · GitHub
Skip to content

Commit

Permalink
pythongh-76785: Fix test_threading on Non-Subinterpreter Builds (pyth…
Browse files Browse the repository at this point in the history
…ongh-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.
  • Loading branch information
ericsnowcurrently authored and Glyphack committed Jan 27, 2024
1 parent 22f0abf commit 6e38b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

try:
from test.support import interpreters
except ModuleNotFoundError:
except ImportError:
interpreters = None

threading_helper.requires_working_threading(module=True)
Expand Down

0 comments on commit 6e38b20

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Glyphack/cpython/commit/6e38b202980676500edc5b30107cab2bbd461571

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy