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

MinRK benjaminrk at gmail.com
Thu May 31 12:44:46 EDT 2012


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

> On Thu, May 31, 2012 at 9:29 AM, Fernando Perez <fperez.net at gmail.com>
> wrote:
> >
> > I'm kind of stumped right now.
>
> I've put a full-gore nose log here: https://gist.github.com/2844633
>
> The weirdness is the following: a modified exclusions list indeed is
> detected by nose, which early on prints:
>
> nose.selector: DEBUG: plugin setting want
> /home/fperez/ipython/ipython/IPython/extensions/cythonmagic.py to
> False
> nose.selector: DEBUG: wantFile
> /home/fperez/ipython/ipython/IPython/extensions/cythonmagic.py? False
> nose.selector: DEBUG: plugin setting want
> /home/fperez/ipython/ipython/IPython/extensions/cythonmagic.pyc to
> False
> nose.selector: DEBUG: wantFile
> /home/fperez/ipython/ipython/IPython/extensions/cythonmagic.pyc? False
>
> but further down, something else in the nose machinery backtracks and
> now says it does want this file:
>
> nose.selector: DEBUG: plugin setting want
> /home/fperez/ipython/ipython/IPython/extensions/tests/test_cythonmagic.py
> to True
> nose.selector: DEBUG: wantFile
> /home/fperez/ipython/ipython/IPython/extensions/tests/test_cythonmagic.py?
> True
> nose.loader: DEBUG: load from
> /home/fperez/ipython/ipython/IPython/extensions/tests/test_cythonmagic.py
> (None)
> nose.selector: DEBUG: Test name
> /home/fperez/ipython/ipython/IPython/extensions/tests/test_cythonmagic.py
> resolved to file
> /home/fperez/ipython/ipython/IPython/extensions/tests/test_cythonmagic.py,
> module None, call None
> nose.selector: DEBUG: Final resolution of test name
> /home/fperez/ipython/ipython/IPython/extensions/tests/test_cythonmagic.py:
> file
> /home/fperez/ipython/ipython/IPython/extensions/tests/test_cythonmagic.py
> module IPython.extensions.tests.test_cythonmagic call None
> nose.importer: DEBUG: Import IPython.extensions.tests.test_cythonmagic
> from /home/fperez/ipython/ipython
>
> Which then proceeds to blow up (this was done in a bare virtualenv
> that didn't find my system-installed Cython).
>
> I have no clue what is making nose ignore the earlier exclusion decision...
>

It might be related to the fact that it's in the tests dir.  I don't think
we've excluded a *test* file before, always real code / dirs.

-MinRK



>
> Cheers,
>
> f
> _______________________________________________
> 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/c318091a/attachment.html>


More information about the IPython-dev mailing list