From e82e57a30c44521c75010ca507f9dda8e34898ce Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sun, 31 Oct 2021 11:29:05 +0100 Subject: [PATCH] Remove unused code Since 99d9cb0b0d6498d678de426a81e622dd3e3750d6 runs all tests with HOME set to a temporary directory, this code setting the cache directory to a temporary directory is no longer needed. `cache_dir()` will choose a directory in the home directory if neither KITTY_CACHE_DIRECTORY or XDG_CACHE_HOME are set. --- kitty_tests/graphics.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/kitty_tests/graphics.py b/kitty_tests/graphics.py index 19cdaa821..20702471c 100644 --- a/kitty_tests/graphics.py +++ b/kitty_tests/graphics.py @@ -12,7 +12,6 @@ from io import BytesIO from itertools import cycle from typing import NamedTuple -from kitty.constants import cache_dir from kitty.fast_data_types import ( load_png_data, parse_bytes, shm_unlink, shm_write, xor_data ) @@ -183,13 +182,6 @@ def make_send_command(screen): class TestGraphics(BaseTest): - def setUp(self): - cache_dir.set_override(tempfile.mkdtemp()) - - def tearDown(self): - os.rmdir(cache_dir()) - cache_dir.clear_override() - def test_xor_data(self): def xor(skey, data):