This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients alex, belopolsky, brett.cannon, ncoghlan, rhettinger
Date 2012-09-26.04:18:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348633106.85.0.0517841558477.issue15805@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2012-09-26 04:18:27rhettingersetrecipients: + rhettinger, brett.cannon, ncoghlan, belopolsky, alex
2012-09-26 04:18:26rhettingersetmessageid: <1348633106.85.0.0517841558477.issue15805@psf.upfronthosting.co.za>
2012-09-26 04:18:26rhettingerlinkissue15805 messages
2012-09-26 04:18:26rhettingercreate