← mined_baseline

rich_2495

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

Task input

(not found in data/tasks.jsonl)

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
...................................F
=================================== FAILURES ===================================
________________________________ test_wrap_file ________________________________

    def test_wrap_file() -> None:
        fd, filename = tempfile.mkstemp()
        with os.fdopen(fd, "wb") as f:
            total = f.write(b"Hello, World!")
        try:
            with open(filename, "rb") as file:
                with rich.progress.wrap_file(file, total=total) as f:
                    assert f.read() == b"Hello, World!"
>                   assert f.mode == "rb"
E                   AssertionError: assert None == 'rb'
E                    +  where None = <rich.progress._Reader object at 0x1029e1c00>.mode

tests/test_progress.py:617: AssertionError
----------------------------- Captured stdout call -----------------------------
Reading... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13/13 bytes 0:00:00
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 35 passed in 0.47s