<br><br><div class="gmail_quote">On Mon, Feb 23, 2009 at 13:23, Nick Coghlan <span dir="ltr">&lt;<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Brett Cannon wrote:<br>
&gt; Well, neither do I as your proposed approach below is what I do for<br>
&gt; warnings.<br>
<br>
</div>It&#39;s possible I actually had test_warnings.py open in another window<br>
while writing that example function... ;)<br>
<br>
As Steven said, your concerns are precisely why I&#39;m suggesting hiding<br>
this in a helper function - so people that aren&#39;t quite as comfortable<br>
playing games with sys.modules can still use it to suppress particular<br>
extension modules when writing tests. Initially for the Python<br>
regression test suite only, but perhaps eventually in importlib if we&#39;re<br>
happy with the way it works out for us.<br>
</blockquote><div><br>Sounds like a plan.<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Created <a href="http://bugs.python.org/issue5354" target="_blank">http://bugs.python.org/issue5354</a> and assigned it to myself so we<br>
don&#39;t forget about it.</blockquote><div><br>If we do end up going with this approach I am willing to help out with moving the standard library over.<br><br>-Brett <br></div></div><br>