Remove unused code

Since 99d9cb0b0d 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.
This commit is contained in:
Luflosi 2021-10-31 11:29:05 +01:00
parent 336c7ddca8
commit e82e57a30c
No known key found for this signature in database
GPG key ID: 4E41E29EDCC345D0

View file

@ -12,7 +12,6 @@
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 li(payload='abcdefghijkl'*3, s=4, v=3, f=24, a='f', i=1, **kw):
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):