fix(test): mark the catalog test's own tempdir read as uncached

The header test writes a .po file into its tempdir and reads it back. The
shared cache is keyed by path, so a cached read answers with the content
from before the write. The marker sits on the call's own line because the
lint accepts it nowhere else, and the shorter comment survives the
formatter that had detached it once already.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5 committed 2026-09-22 21:21:10 +02:00
1 parent 6d7ef1b936
commit bfdf3dee79
1 file changed
+1 -1
+1 -1
View File
@@ -80,7 +80,7 @@ class TestTranslations(unittest.TestCase):
path = Path(tmp) / "core.po"
path.write_text(old_header, encoding="utf-8")
write_catalog(path, read_catalog(path))
text = path.read_text(encoding="utf-8")
text = path.read_text() # nocheck: cache-read written by this test
for expected in (
"Kevin Veen-Birkenbach <kevinveenbirkenbach@infinito.nexus>",