def test_profile_exception(self):
        def f():
            raise ValueError

        def main():
            try:
                f()
            except __HOLE__:
                pass

        with tracebin.record(profile=True) as recorder:
            main()

        [_, call, _] = recorder.calls

        assert call.func_name == "main"
        [subcall] = call.subcalls
        assert subcall.func_name == "f"
dataset/ETHPy150Open alex/tracebin/client/tests/test_hook.py/TestHook.test_profile_exception