Set XDG_DATA_HOME on font tests

This commit is contained in:
mamg22 2024-06-11 22:08:53 -04:00
parent 2e15dc9f53
commit 1175e53d53

View File

@ -564,6 +564,7 @@ def test_find_font(
# catching syntax like errors
monkeypatch.setattr(sys, "platform", platform)
if platform == "linux":
monkeypatch.setenv("XDG_DATA_HOME", "/home/__pillow__/.local/share")
monkeypatch.setenv("XDG_DATA_DIRS", "/usr/share/:/usr/local/share/")
def fake_walker(path: str) -> list[tuple[str, list[str], list[str]]]: