Message171327
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). | |
| Date | User | Action | Args | | 2012-09-26 04:18:27 | rhettinger | set | recipients: + rhettinger, brett.cannon, ncoghlan, belopolsky, alex | | 2012-09-26 04:18:26 | rhettinger | set | messageid: <1348633106.85.0.0517841558477.issue15805@psf.upfronthosting.co.za> | | 2012-09-26 04:18:26 | rhettinger | link | issue15805 messages | | 2012-09-26 04:18:26 | rhettinger | create | | |