<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 29, 2012 at 4:46 PM, Benjamin Peterson <span dir="ltr"><<a href="mailto:benjamin@python.org" target="_blank">benjamin@python.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2012/12/29 Eli Bendersky <<a href="mailto:eliben@gmail.com">eliben@gmail.com</a>>:<br>
<div><div class="h5">> Hi,<br>
><br>
> This came up while investigating some test-order-dependency failures in<br>
> issue 16076.<br>
><br>
> test___all__ goes over modules that have `__all__` in them and does 'from<br>
> <module> import *' on them. This leaves a lot of modules in sys.modules,<br>
> which may interfere with some tests that do fancy things with sys,modules.<br>
> In particular, the ElementTree tests have trouble with it because they<br>
> carefully set up the imports to get the C or the Python version of etree<br>
> (see issues 15083 and 15075).<br>
><br>
> Would it make sense to save the sys.modules state and restore it in<br>
> test___all__ so that sys.modules isn't affected by this test?<br>
<br>
</div></div>Sounds reasonable to me.<br></blockquote><div><br></div><div>Thanks. <a href="http://bugs.python.org/issue16817">http://bugs.python.org/issue16817</a><br><br>Eli<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<span class=""><font color="#888888"><br>
--<br>
Regards,<br>
Benjamin<br>
</font></span></blockquote></div><br></div></div>