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.
This commit is contained in:
parent
336c7ddca8
commit
e82e57a30c
@ -12,7 +12,6 @@ from io import BytesIO
|
|||||||
from itertools import cycle
|
from itertools import cycle
|
||||||
from typing import NamedTuple
|
from typing import NamedTuple
|
||||||
|
|
||||||
from kitty.constants import cache_dir
|
|
||||||
from kitty.fast_data_types import (
|
from kitty.fast_data_types import (
|
||||||
load_png_data, parse_bytes, shm_unlink, shm_write, xor_data
|
load_png_data, parse_bytes, shm_unlink, shm_write, xor_data
|
||||||
)
|
)
|
||||||
@ -183,13 +182,6 @@ def make_send_command(screen):
|
|||||||
|
|
||||||
class TestGraphics(BaseTest):
|
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 test_xor_data(self):
|
||||||
|
|
||||||
def xor(skey, data):
|
def xor(skey, data):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user