From bfdf3dee7901d0c65d45ffbcd26ab2d52d5ed8ee Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 22 Sep 2026 21:21:10 +0200 Subject: [PATCH] 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) --- tests/unit/python/utils/i18n/test_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/python/utils/i18n/test_catalog.py b/tests/unit/python/utils/i18n/test_catalog.py index 5850b8fddd..b395a59c90 100644 --- a/tests/unit/python/utils/i18n/test_catalog.py +++ b/tests/unit/python/utils/i18n/test_catalog.py @@ -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 ",