]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #27123: When an exception is raised within the context being
authorGregory P. Smith <greg@krypto.org>
Tue, 14 Jun 2016 16:19:20 +0000 (09:19 -0700)
committerGregory P. Smith <greg@krypto.org>
Tue, 14 Jun 2016 16:19:20 +0000 (09:19 -0700)
commitba2ecd68414b9c53d00560579f5bc13459bc0449
tree0f23b73c117c222dbb5b3781afb3f7dc3462a9f9
parentc72828ba3377a2139f36b8fdc9b0cbd5dd798712
Issue #27123: When an exception is raised within the context being
managed by a contextlib.ExitStack() and one of the exit stack
generators catches and raises it in a chain, do not re-raise the
original exception when exiting, let the new chained one through.
This avoids the PEP 479 bug described in issue25782.
Lib/contextlib.py
Lib/test/test_contextlib.py
Misc/NEWS