nose-devs/nose — Issue #54: Error with module named "setup"
Author: jpellerin
Created: 2011-12-14 15:57:14+00:00
State: closed

What steps will reproduce the problem?
1. Create a package
2. Create a module within that package called "setup.py"
3. Run nose on that package

What is the expected output? What do you see instead?

Nose should ignore the module setup. Instead, I get the following:

Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/nose/suite.py", line 183, in run
self.setUp()
File "/Library/Python/2.6/site-packages/nose/suite.py", line 264, in setUp
self.setupContext(ancestor)
File "/Library/Python/2.6/site-packages/nose/suite.py", line 287, in setupContext
try_run(context, names)
File "/Library/Python/2.6/site-packages/nose/util.py", line 482, in try_run
(name, obj))
TypeError: Attribute setup of is not a python function. Only functions
or callables may be used as fixtures.

What version of the product are you using? On what operating system?

0.11.1

Google Code Info:
Issue #: 320
Author: amnorv...@gmail.com
Created On: 2010-02-12T14:47:10.000Z
Closed On: 2011-11-25T05:35:44.000Z