Wed Sep 27 19:09:08 2006
Ticket #93 (Closed: fixed)
try:except: around inspect.getargspec
| Priority: | normal | Reporter: | ianb@colorstudy.com |
|---|---|---|---|
| Severity: | normal | Assigned to: | jpellerin |
| Component: | nose | Status: | closed |
| Version: | Resolution: | fixed | |
| Milestone: | 0.9.1 | Keywords: |
Description by ianb@colorstudy.com:
I got this exception from the collector:
File "/usr/local/lib/python2.4/site-packages/nose-0.9.0-py2.4.egg/nose/util.py", line 163, in try_run
args, varargs, varkw, defaults = inspect.getargspec(func)
File "/usr/lib/python2.4/inspect.py", line 670, in getargspec
raise TypeError('arg is not a Python function')
nose should catch this and tell more about what "func" really is.
Changelog
Mon Oct 9 18:03:12 2006: Modified by jpellerin
- milestone set to 0.9.1
- status changed from new to assigned
Tue Oct 10 16:51:17 2006: Modified by jpellerin
- resolution set to fixed
- status changed from assigned to closed

Fixed in [103]. Nose will now try to be more forgiving of setup/teardown functions that are actually callable objects, and in any case will give back a better error message if the setup/teardown attribute is not callable.