From 94e08d1fdcf1ee2093c35d87eefda4d21485b55c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 23 Oct 2026 12:32:53 +0200 Subject: [PATCH] Test: write the snapshot revision file with a real newline escape Co-Authored-By: Claude Opus 5.5 --- scripts/test_text_encoding.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/test_text_encoding.py b/scripts/test_text_encoding.py index a1f1542..3a395cb 100644 --- a/scripts/test_text_encoding.py +++ b/scripts/test_text_encoding.py @@ -77,8 +77,7 @@ class SnapshotPath(unittest.TestCase): with tempfile.TemporaryDirectory() as home: repo = Path(home) / "hub" / "models--org--name" (repo / "refs").mkdir(parents=True) - (repo / "refs" / "main").write_text("deadbeef -") + (repo / "refs" / "main").write_text("deadbeef" + chr(10)) (repo / "snapshots" / "deadbeef").mkdir(parents=True) self.assertEqual(te.snapshot_path(Path(home), "org/name"), repo / "snapshots" / "deadbeef")