(original) (raw)
On Mon, Feb 23, 2009 at 13:23, Nick Coghlan <ncoghlan@gmail.com> wrote:
Sounds like a plan.
If we do end up going with this approach I am willing to help out with moving the standard library over.
-Brett
Brett Cannon wrote:It's possible I actually had test\_warnings.py open in another window
> Well, neither do I as your proposed approach below is what I do for
> warnings.
while writing that example function... ;)
As Steven said, your concerns are precisely why I'm suggesting hiding
this in a helper function - so people that aren't quite as comfortable
playing games with sys.modules can still use it to suppress particular
extension modules when writing tests. Initially for the Python
regression test suite only, but perhaps eventually in importlib if we're
happy with the way it works out for us.
Sounds like a plan.
Created http://bugs.python.org/issue5354 and assigned it to myself so we
don't forget about it.
If we do end up going with this approach I am willing to help out with moving the standard library over.
-Brett