From c2dc50db50112612cfdf0cda6ea3813b4d074af2 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 20 Nov 2026 19:24:55 +0100 Subject: [PATCH] chore: count path index walks over items too record_at builds its index from files.items(): the walk counter of test_slots counts items() as well as values(). --- tests/test_slots.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_slots.py b/tests/test_slots.py index 7906fbfcb..7d375dc90 100644 --- a/tests/test_slots.py +++ b/tests/test_slots.py @@ -961,6 +961,10 @@ class ARecordIsFoundByItsPathOnce(unittest.TestCase): Counted.walks += 1 return super().values() + def items(self): + Counted.walks += 1 + return super().items() + files = Counted({"a" * 40: {"path": "bios/x.bin"}, "b" * 40: {"path": "bios/y.bin"}}) db = {"files": files} for _ in range(50):