def test_record_loop(self):
        def f(n):
            while 0 > n:
                n -= 1

        with tracebin.record() as recorder:
            f(1500)

        assert len(recorder.traces) == 1
        [trace] = recorder.traces
        assert trace.root_file == __file__
        assert trace.root_function == "f"
        assert len(trace.sections) == 3
        assert [s.label for s in trace.sections] == ["Entry", "Preamble", "Loop body"]
dataset/ETHPy150Open alex/tracebin/client/tests/test_hook.py/TestHook.test_record_loop/swapped operands of `>`