Skip to content
Merged
Show file tree
Hide file tree
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
MAINT: Small code, comment, and blurb fixups based on review
Co-authored-by: Brett Cannon <brett@python.org>
  • Loading branch information
seberg and brettcannon committed Dec 3, 2022
commit 3308e15d69ea74e10ce02fa4b7fe9cfcab982848
3 changes: 2 additions & 1 deletion Lib/test/test_importlib/extension/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,9 @@ 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`
Comment thread
brettcannon marked this conversation as resolved.
Outdated
if "unreported_exception" in name_base:
self.assertIsNot(cm.exception.__cause__, None)
self.assertIsNotNone(cm.exception.__cause__)

def test_nonascii(self):
# Test that modules with non-ASCII names can be loaded.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SystemErrors on import now chain the original unexpected exception
Raising SystemError on import will now have its cause be set to the original unexpected exception.