#973: weird error running nosetests
------------------------+---------------------------------------------------
Reporter: max | Owner: anonymous
Type: defect | Status: closed
Priority: normal | Milestone: 1.0b2
Component: TurboGears | Version: 0.9a5
Severity: normal | Resolution: worksforme
Keywords: |
------------------------+---------------------------------------------------
Changes (by alberto):
* status: new => closed
* resolution: => worksforme
Comment:
I think we can safely close this. I get:
{{{
(Test)jal:~/src/python/checkouts/turbogears alberto$ nosetests --with-
coverage --cover-package=turbogears
........................Registering Service turbogears:
development._http._tcp port 8080 path=/
.No handlers could be found for logger "turbogears.identity"
...............................................................................................................................................................E..............................................
======================================================================
ERROR: test module turbogears.tests.test_decorator in
/Users/alberto/src/python/checkouts/turbogears
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/alberto/Test/lib/python2.4/nose-0.9.0-py2.4.egg/nose/suite.py",
line 44, in run
self.setUp()
File
"/Users/alberto/Test/lib/python2.4/nose-0.9.0-py2.4.egg/nose/suite.py",
line 187, in setUp
self.module = _import(self.moduleName, [self.path], self.conf)
File
"/Users/alberto/Test/lib/python2.4/nose-0.9.0-py2.4.egg/nose/importer.py",
line 97, in _import
cache[fqname] = mod
File
"/Users/alberto/Test/lib/python2.4/nose-0.9.0-py2.4.egg/nose/importer.py",
line 97, in _import
cache[fqname] = mod
File "/Users/alberto/Test/lib/python2.4/PyProtocols-1.0a0dev_r2082-py2.4
-macosx-10.4-fat.egg/protocols/advice.py", line 295, in tracer
oldtrace[0] = oldtrace[0](frm,event,arg)
File "/Users/alberto/Test/lib/python2.4/PyProtocols-1.0a0dev_r2082-py2.4
-macosx-10.4-fat.egg/protocols/advice.py", line 289, in tracer
frm.f_locals[k] = callback(frm,k,v,old_locals)
File "/Users/alberto/src/turbogears/turbogears/decorator.py", line 58,
in callback
File "/Users/alberto/src/turbogears/turbogears/decorator.py", line 16,
in decorate
File
"/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/inspect.py",
line 677, in getargspec
raise TypeError('arg is not a Python function')
TypeError: arg is not a Python function
.... (snip: loads of cover info... (BTW, we're at 51% but most of it is
spuriously hidden in kid templates used by widgets) ....
TOTAL
22263 11507 51%
----------------------------------------------------------------------
Ran 230 tests in 34.753s
FAILED (errors=1)
}}}
In [2255] and is (probably, I guess....) related to PyProtocols tracer
magic being incompatible with coverage.py. Nothing we should lose our
sleep for IMO ;)
Alberto
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/973>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en
-~----------~----~----~----~------~----~------~--~---