[py-svn] r34588 - py/dist/py/apigen/tracer
fijal at codespeak.net
fijal at codespeak.net
Mon Nov 13 22:37:51 CET 2006
Author: fijal
Date: Mon Nov 13 22:37:49 2006
New Revision: 34588
Modified:
py/dist/py/apigen/tracer/tracer.py
Log:
Fixed stuff for greenlets.
Modified: py/dist/py/apigen/tracer/tracer.py
==============================================================================
--- py/dist/py/apigen/tracer/tracer.py (original)
+++ py/dist/py/apigen/tracer/tracer.py Mon Nov 13 22:37:49 2006
@@ -30,9 +30,12 @@
frame = py.code.Frame(frame)
if event == 'call':
assert arg is None
- self.docstorage.consider_call(frame,
+ try:
+ self.docstorage.consider_call(frame,
py.code.Frame(sys._getframe(2)),
self.frame)
+ except ValueError:
+ self.docstorage.consider_call(frame, None, self.frame)
elif event == 'return':
self.docstorage.consider_return(frame, arg)
return self._tracer
More information about the pytest-commit
mailing list