haiku.rag/tests/sandbox
Yiorgis Gozadinos feaca386d3
Document that file objects cannot be iterated
Monty 0.0.19 supports open() and with blocks, but a file object is still not
iterable. See pydantic/monty#490, which is still open. The instructions now
state the limitation in three places and give the alternative next to each
one: readlines() or read().split("\n").

Replace chr(10) with "\n" in the prose and in the example. Both work on
0.0.19, and chr(10) implies that the escape is broken.

Add a test that pins the limitation. The test fails when Monty gains
iteration support, which is the signal to relax the instructions.
2026-07-28 19:10:53 +03:00
..
__init__.py Delete the standalone QA and analysis agents 2026-05-19 11:39:20 +03:00
conftest.py Delete the standalone QA and analysis agents 2026-05-19 11:39:20 +03:00
test_models.py Delete the standalone QA and analysis agents 2026-05-19 11:39:20 +03:00
test_sandbox.py Document that file objects cannot be iterated 2026-07-28 19:10:53 +03:00
test_sandbox_multimodal.py Delete the standalone QA and analysis agents 2026-05-19 11:39:20 +03:00
test_sandbox_toc.py Keep the lazy-read test off the embedder 2026-07-27 13:17:05 +03:00