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
Fix CPython-compatible assert in builtin_exceptions test
Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com>
  • Loading branch information
Copilot and youknowone committed Dec 26, 2025
commit 4dc01521ac7b3d741df99fa3504afd7e30246933
4 changes: 3 additions & 1 deletion extra_tests/snippets/builtin_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ class SubError(MyError):
raise ValueError("x")
except* ValueError as err:
assert isinstance(err, ExceptionGroup)
assert err.exceptions == (ValueError("x"),)
assert len(err.exceptions) == 1
assert isinstance(err.exceptions[0], ValueError)
assert err.exceptions[0].args == ("x",)
else:
assert False, "except* handler did not run"

Expand Down