From 0a28f9627b90c4c418b8bff7f3ae9937318c3cff Mon Sep 17 00:00:00 2001 From: Tyler Kennedy Date: Sat, 16 Mar 2024 11:40:28 -0400 Subject: [PATCH] Use lru_cache instead of cache for compatibility with older versions of Python. --- tests/test_benchmark.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_benchmark.py b/tests/test_benchmark.py index f0c20f2..c344899 100644 --- a/tests/test_benchmark.py +++ b/tests/test_benchmark.py @@ -1,4 +1,4 @@ -from functools import cache +from functools import lru_cache from pathlib import Path import can_ada @@ -6,7 +6,7 @@ import urllib.parse -@cache +@lru_cache def data() -> list[str]: current_file_dir = Path(__file__).parent with open(current_file_dir / "data" / "top100.txt", "r") as f: