From 100b6fd06fbffff3ce4ca375defed61233915fdd Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Mon, 2 Oct 2023 13:52:56 +0200 Subject: [PATCH] Fix flaky lru_cache test (#101252) --- tests/helpers/test_entity_values.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/helpers/test_entity_values.py b/tests/helpers/test_entity_values.py index 1ac8e480f51..f32db73a788 100644 --- a/tests/helpers/test_entity_values.py +++ b/tests/helpers/test_entity_values.py @@ -9,6 +9,7 @@ ent = "test.test" def test_override_single_value() -> None: """Test values with exact match.""" store = EV({ent: {"key": "value"}}) + store.get.cache_clear() assert store.get(ent) == {"key": "value"} assert store.get.cache_info().currsize == 1 assert store.get.cache_info().misses == 1