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

Fernando Perez fperez.net at gmail.com
Thu May 31 12:40:13 EDT 2012


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

Cheers,

f



More information about the IPython-dev mailing list