From 7ac49234ca8abcbfe416ff57894e1bbaf2f957a2 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 22 Oct 2026 09:47:59 +0200 Subject: [PATCH] test(inventory): read the width test's tempdir file without the cache The file is written by the test itself, so the path-keyed read cache does not fit; opt the read out of the uncached-read lint instead. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../cli/administration/inventory/provision/test_ruamel_io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/python/cli/administration/inventory/provision/test_ruamel_io.py b/tests/unit/python/cli/administration/inventory/provision/test_ruamel_io.py index bda038bbf2..603897edef 100644 --- a/tests/unit/python/cli/administration/inventory/provision/test_ruamel_io.py +++ b/tests/unit/python/cli/administration/inventory/provision/test_ruamel_io.py @@ -81,7 +81,8 @@ class TestDumpDocument(unittest.TestCase): dump_document(path, document) - lines = path.read_text(encoding="utf-8").splitlines() + text = path.read_text(encoding="utf-8") # nocheck: cache-read tempdir + lines = text.splitlines() self.assertEqual(3, len(lines)) self.assertEqual(f"- {key}", lines[1]) self.assertEqual(key, load_document(path)["authorized_keys"][0])