[IPython-dev] Cython magics crashes test suite when cython not present

Fernando Perez fperez.net at gmail.com
Thu May 31 14:49:36 EDT 2012


Hey Min,

On Thu, May 31, 2012 at 11:40 AM, MinRK <benjaminrk at gmail.com> wrote:
> Anyone else seeing this test failure:
>
> ImportError: Building module _test_cython_pyximport failed:
> ["DistutilsSetupError: each element of 'ext_modules' option must be an
> Extension instance or 2-tuple\n"]
>
> ?
>
> The reason being that Extension has changed due to autoreload, and an
> isinstance check in distutils is failing as a result.
>
> I can confirm that it is autoreload-related, because the tests pass in
> isolation, but if I run an autoreload test *in between* cython tests, I see
> the above failure:
>
>>gt; iptest IPython.extensions.cythonmagic
>> IPython.extensions.tests.test_autoreload
>> IPython.extensions.tests.test_cythonmagic
>
> I don't know enough to be sure whether this is a bug in autoreload, or a
> conflict with pyximport, or what.
>
> The autoreload tests should probably not be allowed to run in the same
> process as the rest of the suite.

No, I haven't seen the error, but I agree with you that we probably
want autoreload testing all by itself.  Right now unfortunately our
test grouping is done by package, so this isolation may require a bit
of custom code, I'm afraid.



More information about the IPython-dev mailing list