From 4ba35d4a93575b31572c01f585e3ada58d47b3fb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Feb 2021 09:56:17 +0530 Subject: [PATCH] Clear cache_dir lru cache when testing --- kitty_tests/graphics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty_tests/graphics.py b/kitty_tests/graphics.py index 7be024c01..f4d0b8bfe 100644 --- a/kitty_tests/graphics.py +++ b/kitty_tests/graphics.py @@ -180,7 +180,8 @@ def make_send_command(screen): class TestGraphics(BaseTest): def setUp(self): - cache_dir.override_dir = tempfile.mkdtemp(dir=os.getcwd() if self.is_ci else None) + cache_dir.override_dir = tempfile.mkdtemp() + cache_dir.cache_clear() def tearDown(self): os.rmdir(cache_dir.override_dir)