mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
tests: Use tempdir for XDG_RUNTIME_DIR
This commit is contained in:
@@ -255,6 +255,7 @@ def env_for_python_tests(report_env: bool = False) -> Iterator[None]:
|
|||||||
XDG_CONFIG_DIRS=os.path.join(tdir, '.config'),
|
XDG_CONFIG_DIRS=os.path.join(tdir, '.config'),
|
||||||
XDG_DATA_DIRS=os.path.join(tdir, '.local', 'xdg'),
|
XDG_DATA_DIRS=os.path.join(tdir, '.local', 'xdg'),
|
||||||
XDG_CACHE_HOME=os.path.join(tdir, '.cache'),
|
XDG_CACHE_HOME=os.path.join(tdir, '.cache'),
|
||||||
|
XDG_RUNTIME_DIR=os.path.join(tdir, '.cache', 'run'),
|
||||||
PYTHONWARNINGS='error',
|
PYTHONWARNINGS='error',
|
||||||
):
|
):
|
||||||
if os.path.isdir(gohome):
|
if os.path.isdir(gohome):
|
||||||
|
|||||||
Reference in New Issue
Block a user