[svn r63051] be very careful when we cannot unpickle an

colitem because its parent can't collect
the same way as on the sending side.
(due to platform skips etc.)

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-18 20:23:38 +01:00
parent f013f0a54b
commit 5f25395cdd
4 changed files with 33 additions and 14 deletions

View File

@@ -265,7 +265,7 @@ class FunctionMixin(PyobjMixin):
teardown_func_or_meth(self.obj)
def _prunetraceback(self, traceback):
if not self.config.option.fulltrace:
if hasattr(self, '_obj') and not self.config.option.fulltrace:
code = py.code.Code(self.obj)
path, firstlineno = code.path, code.firstlineno
ntraceback = traceback.cut(path=path, firstlineno=firstlineno)