def METHOD_NAME(self):
    # bpo-3895
    import _lsprof
    with support.catch_unraisable_exception() as cm:
        obj = _lsprof.Profiler(lambda: int)
        obj.enable()
        obj = _lsprof.Profiler(1)
        obj.disable()
        obj.clear()
        self.assertEqual(cm.unraisable.exc_type, TypeError)