def __getstate__(self):
        """Cleans up the object so that it can be pickled without any pointer
        issues. Saves the full names of parents etc. so that they can be 
        restored once the unpickling is completed."""
        odict = self.__dict__.copy() # copy the dict since we change it
        del odict['_tests']
        del odict['_testgroup']
        del odict['_module']
        del odict['parent']
        del odict['_summary']
        return odict
def __getstate__ ( self ) : odict = self . __dict__ . copy ( ) del odict [ '_tests' ] del odict [ '_testgroup' ] del odict [ '_module' ] del odict [ 'parent' ] del odict [ '_summary' ] return odict
Cleans up the object so that it can be pickled without any pointer
        issues. Saves the full names of parents etc. so that they can be 
        restored once the unpickling is completed.