Raymond Hettinger added the comment:

I like Nick's proposed variant and think it should go in contextlib, not the 
mocking library.  Redirection has a lot of use cases that has nothing to do 
with mocking-up test suites.  Contextlib is about general purpose 
context-managers that apply in many situations (the closing() context manager 
is a good example).

----------

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

Reply via email to