mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
Set XDG_DATA_HOME on font tests
This commit is contained in:
parent
2e15dc9f53
commit
1175e53d53
|
@ -564,6 +564,7 @@ def test_find_font(
|
||||||
# catching syntax like errors
|
# catching syntax like errors
|
||||||
monkeypatch.setattr(sys, "platform", platform)
|
monkeypatch.setattr(sys, "platform", platform)
|
||||||
if platform == "linux":
|
if platform == "linux":
|
||||||
|
monkeypatch.setenv("XDG_DATA_HOME", "/home/__pillow__/.local/share")
|
||||||
monkeypatch.setenv("XDG_DATA_DIRS", "/usr/share/:/usr/local/share/")
|
monkeypatch.setenv("XDG_DATA_DIRS", "/usr/share/:/usr/local/share/")
|
||||||
|
|
||||||
def fake_walker(path: str) -> list[tuple[str, list[str], list[str]]]:
|
def fake_walker(path: str) -> list[tuple[str, list[str], list[str]]]:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user