Visitar URL original
gh-99947: Ensure unreported error is chained for SystemError during import by seberg · Pull Request #99946 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update comment in Lib/test/test_importlib/extension/test_loader.py
  • Loading branch information
brettcannon authored Dec 23, 2022
commit 86f1fa5f8fa4ee8bf9d49692f3481f1abccea6ec
2 changes: 1 addition & 1 deletion Lib/test/test_importlib/extension/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def test_bad_modules(self):
self.load_module_by_name(name)

# If there is an unreported exception, it should be chained
Comment thread
brettcannon marked this conversation as resolved.
# with the `SystemError`
# with the `SystemError`.
if "unreported_exception" in name_base:
self.assertIsNotNone(cm.exception.__cause__)

Expand Down