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
1 changed files with 0 additions and 8 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue