failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
...................................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