[pypy-svn] r38575 - pypy/dist/pypy/tool/pytest
fijal at codespeak.net
fijal at codespeak.net
Mon Feb 12 16:29:43 CET 2007
Author: fijal
Date: Mon Feb 12 16:29:42 2007
New Revision: 38575
Modified:
pypy/dist/pypy/tool/pytest/appsupport.py
Log:
We need those two for distributed testing
Modified: pypy/dist/pypy/tool/pytest/appsupport.py
==============================================================================
--- pypy/dist/pypy/tool/pytest/appsupport.py (original)
+++ pypy/dist/pypy/tool/pytest/appsupport.py Mon Feb 12 16:29:42 2007
@@ -12,6 +12,7 @@
def __init__(self, space, pycode):
self.code = space.unwrap(space.getattr(pycode, space.wrap('co_code')))
self.w_file = space.getattr(pycode, space.wrap('co_filename'))
+ self.name = space.getattr(pycode, space.wrap('co_name'))
self.firstlineno = space.unwrap(space.getattr(pycode, space.wrap('co_firstlineno')))
#try:
# self.path = space.unwrap(space.getattr(self.w_file, space.wrap('__path__')))
@@ -64,6 +65,7 @@
def __init__(self, space, operr):
self.space = space
self.operr = operr
+ self.typename = operr.w_type.name
self.traceback = AppTraceback(space, self.operr.application_traceback)
debug_excs = getattr(operr, 'debug_excs', [])
if debug_excs:
More information about the Pypy-commit
mailing list