Skip pyroma test if git is not available

This commit is contained in:
Andrew Murray 2025-07-26 16:15:33 +10:00
parent 640f55a655
commit 295ccec440

View File

@ -1,5 +1,7 @@
from __future__ import annotations from __future__ import annotations
import shutil
import pytest import pytest
from PIL import __version__ from PIL import __version__
@ -7,6 +9,7 @@ from PIL import __version__
pyroma = pytest.importorskip("pyroma", reason="Pyroma not installed") pyroma = pytest.importorskip("pyroma", reason="Pyroma not installed")
@pytest.mark.skipif(not shutil.which("git"), reason="Git is used by check-manifest")
def test_pyroma() -> None: def test_pyroma() -> None:
# Arrange # Arrange
data = pyroma.projectdata.get_data(".") data = pyroma.projectdata.get_data(".")