]> granicus.if.org Git - python/commitdiff
Issue #27123: When an exception is raised within the context being
authorGregory P. Smith <greg@krypto.org>
Tue, 14 Jun 2016 16:24:31 +0000 (09:24 -0700)
committerGregory P. Smith <greg@krypto.org>
Tue, 14 Jun 2016 16:24:31 +0000 (09:24 -0700)
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.

1  2 
Lib/contextlib.py
Lib/test/test_contextlib.py
Misc/NEWS

Simple merge
Simple merge
diff --cc Misc/NEWS
Simple merge