nose-devs/nose — Issue #119: ImportError when using extension modules
Author: jpellerin
Created: 2011-12-14 15:59:53+00:00
State: open

I have a project with some extension modules written in C. The directory layout I am using is this one:

src/
src/mypackage/
src/mypackage/__init__.py
src/mypackage/_amodule.c
src/mypackage/_bmodule.c

Such C extensions are not built in src, but in a separate directory (build). This means that mypackage can't be imported safely.

If I run 'nosetests' in the root, it looks for tests in src/mypackage and it fails with "ImportError: cannot import name _a". I think that by default nose shouldn't try to import mypackage because it doesn't contain files that start with 'test_'.

Google Code Info:
Issue #: 377
Author: corbelli...@gmail.com
Created On: 2010-11-27T14:27:15.000Z
Closed On: