def METHOD_NAME(sentry_init, request):
    sentry_init(default_integrations=False, integrations=[ThreadingIntegration()])
    gc.collect()
    gc.disable()
    request.addfinalizer(gc.enable)
    class MyThread(Thread):
        def run(self):
            pass
    t = MyThread()
    t.start()
    t.join()
    del t
    assert not gc.collect()