'Remove references to other objects, replacing them with strings.
On Python 3, this will also set the C{__traceback__} attribute of the
exception instance to L{None}.'

def cleanFailure(self):

    self.__dict__ = self.__getstate__()
    if getattr(self.value, '__traceback__', None):
        self.value.__traceback__ = None
