bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089)
* bpo-44594: fix (Async)ExitStack handling of __context__ Make enter_context(foo()) / enter_async_context(foo()) equivalent to `[async] with foo()` regarding __context__ when an exception is raised. Previously exceptions would be caught and re-raised with the wrong context when explicitly overriding __context__ with None.
J
John Belmonte committed
e6d1aa1ac65b6908fdea2c70ec3aa8c4f1dffcb5
Parent: a25dcae
Committed by GitHub <noreply@github.com>
on 10/4/2021, 6:49:55 AM