[issue15805] Add stdout redirection tool to contextlib

Raymond Hettinger report at bugs.python.org
Wed Sep 26 06:18:26 CEST 2012


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 <report at bugs.python.org>
<http://bugs.python.org/issue15805>
_______________________________________


More information about the Python-bugs-list mailing list