def METHOD_NAME(self):
    # .clear() doesn't leave any refcycle behind
    with support.disable_gc():
        class C:
            pass
        c = C()
        wr = weakref.ref(c)
        exc = self.outer(c=c)
        del c
        self.assertIsNot(None, wr())
        self.clear_traceback_frames(exc.__traceback__)
        self.assertIs(None, wr())