In article <
roy-51D3E2.2...@news.panix.com>,
Roy Smith <
r...@panix.com> wrote:
> We've got a package (with an empty __init__.py), which contains a
> setup.py file. When I run nosetests, the test discovery code finds
> setup.py, thinks it's a test, and tries to run it (with predictably poor
> results).
Ugh, I described that wrong. Setup is also a package (with it's own
empty __init__.py file). But, the same problem applies. Nosetests
discovers it, tries to run it, and barfs with:
TypeError: Attribute setup of <module 'djsite.songza_web' from
'/home/roy/songza/djsite/songza_web/__init__.pyc'> is not a python
function. Only functions or callables may be used as fixtures.