mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
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:
parent
336c7ddca8
commit
e82e57a30c
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user