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.