← baseline_full_v2

rich_3486

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich

Task input

report fine grained error locations

Adds PEP 657 finely grained error locations to rich.traceback

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
...................sF
=================================== FAILURES ===================================
________________________ test_traceback_finely_grained _________________________

    @pytest.mark.skipif(
        sys.version_info.minor < 11, reason="Not applicable before Python 3.11"
    )
    def test_traceback_finely_grained() -> None:
        """Check that last instruction is populated."""
        try:
>           1 / 0
E           ZeroDivisionError: division by zero

tests/test_traceback.py:351: ZeroDivisionError

During handling of the above exception, another exception occurred:

    @pytest.mark.skipif(
        sys.version_info.minor < 11, reason="Not applicable before Python 3.11"
    )
    def test_traceback_finely_grained() -> None:
        """Check that last instruction is populated."""
        try:
            1 / 0
        except:
            traceback = Traceback()
>           last_instruction = traceback.trace.stacks[-1].frames[-1].last_instruction
E           AttributeError: 'Frame' object has no attribute 'last_instruction'

tests/test_traceback.py:354: AttributeError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 19 passed, 1 skipped in 0.70s