Skip to content

Enable test_contextlib - #2154

Open
slozier wants to merge 1 commit into
IronLanguages:mainfrom
slozier:test_contextlib
Open

slozier wants to merge 1 commit into
IronLanguages:mainfrom
slozier:test_contextlib

Conversation

@slozier

@slozier slozier commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Fixes exception context chaining so test_contextlib no longer hangs (no __context__ self-reference or cycles). Additional fixes: raise e keeps the existing __cause__, gen.throw() doesn't chain onto the exception being handled, and a bare raise with no active exception raises RuntimeError. Also contains a bit of code cleanup (and some trimmed trailing whitespace that my editor really wanted gone).

Enables test_contextlib (fully passing on 3.4) and test_raise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant