Nick Coghlan added the comment:

There's an existing scenario test at 
https://hg.python.org/cpython/file/default/Lib/test/test_contextlib.py#l600 and 
https://hg.python.org/cpython/file/default/Lib/test/test_contextlib.py#l648 
that aims to ensure ExitStack unwinding and context setting matches the 
behaviour of actual with statements.

It wouldn't hurt to add some explicit checks to the new test for this 
particular bug, though.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27122>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to