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

MinRK benjaminrk at gmail.com
Thu May 31 14:53:22 EDT 2012


On Thu, May 31, 2012 at 11:49 AM, Fernando Perez <fperez.net at gmail.com>wrote:

> 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.
>

Two simple options:

1. move test_autoreload somewhere else
2. always exclude test_autoreload, and give it its own group without that
exclusion


> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120531/3abf70f0/attachment.html>


More information about the IPython-dev mailing list