<br><br><div class="gmail_quote">On Thu, May 31, 2012 at 11:49 AM, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com" target="_blank">fperez.net@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey Min,<br>
<div class="im"><br>
On Thu, May 31, 2012 at 11:40 AM, MinRK <<a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>> wrote:<br>
> Anyone else seeing this test failure:<br>
><br>
> ImportError: Building module _test_cython_pyximport failed:<br>
> ["DistutilsSetupError: each element of 'ext_modules' option must be an<br>
> Extension instance or 2-tuple\n"]<br>
><br>
> ?<br>
><br>
> The reason being that Extension has changed due to autoreload, and an<br>
> isinstance check in distutils is failing as a result.<br>
><br>
> I can confirm that it is autoreload-related, because the tests pass in<br>
> isolation, but if I run an autoreload test *in between* cython tests, I see<br>
> the above failure:<br>
><br>
</div>>>gt; iptest IPython.extensions.cythonmagic<br>
<div class="im">>> IPython.extensions.tests.test_autoreload<br>
>> IPython.extensions.tests.test_cythonmagic<br>
><br>
> I don't know enough to be sure whether this is a bug in autoreload, or a<br>
> conflict with pyximport, or what.<br>
><br>
> The autoreload tests should probably not be allowed to run in the same<br>
> process as the rest of the suite.<br>
<br>
</div>No, I haven't seen the error, but I agree with you that we probably<br>
want autoreload testing all by itself. Right now unfortunately our<br>
test grouping is done by package, so this isolation may require a bit<br>
of custom code, I'm afraid.<br></blockquote><div><br></div><div>Two simple options:</div><div><br></div><div>1. move test_autoreload somewhere else</div><div>2. always exclude test_autoreload, and give it its own group without that exclusion</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br>