I have a directory tree that looks like this:
$ find . -name '*.py' -ls 1315965 4 -rw-rw-r-- 1 roy roy 16 May 25 23:09 ./foo/__init__.py 1445517 4 -rw-rw-r-- 1 roy roy 16 May 25 23:09 ./foo/setup/__init__.py
When I launch the nose, it imports foo.setup, considers it to be a device, and tries to launch it, resulting in:
TypeError: Attribute setup of <module 'foo' from '/home/roy/play/nose/foo/__init__.pyc'> is not a python function. Only functions or callables may be used as fixtures.
Is there any way to say a nose so as not to do this? I tried to set __test__ = False both foo/__init__.py and foo/setup/__init__.py so as not to affect.
source share