'Rebuilding something that has a __hash__ that raises a non-TypeError
shouldn\'t cause rebuild to die.'

def test_hashException(self):

    global unhashableObject
    unhashableObject = HashRaisesRuntimeError()
    def _cleanup():
        global unhashableObject
        unhashableObject = None
    self.addCleanup(_cleanup)
    rebuild.rebuild(rebuild)
    self.assertTrue(unhashableObject.hashCalled)
