Closed injust closed 1 month ago
Seems like the Windows tests are broken. Failures aren't relevant to my change and also happen in other PRs.
You're changing the semantics for the worse. The reason I'm doing async with AsyncExitStack():
in __aenter__()
is to ensure that the stack gets rewound if there's an unhandled exception during __aenter__()
. This would no longer happen if I were to merge this PR.
You're changing the semantics for the worse. The reason I'm doing
async with AsyncExitStack():
in__aenter__()
is to ensure that the stack gets rewound if there's an unhandled exception during__aenter__()
. This would no longer happen if I were to merge this PR.
Thanks for the explanation; I learned a thing today. Didn't think hard enough about exception handling within __aenter__()
.
A bit nicer to have
attrs
create theAsyncExitStack
, instead of assigningself._exit_stack = exit_stack.pop_all()
from within thewith
block.