Skip fuzzer tests on windows

This commit is contained in:
Eric Soroos 2021-03-14 13:27:47 +01:00
parent 8b06fec6ab
commit 6189bca3bc

View File

@ -1,11 +1,15 @@
import subprocess
import sys
import fuzzers
import pytest
from PIL import Image
def is_win32():
sys.platform.startswith("win32")
@pytest.mark.skipif(is_win32(), reason="Fuzzer is linux only")
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
@ -27,7 +31,7 @@ def test_fuzz_images(path):
# Known Image.* exceptions
assert True
@pytest.mark.skipif(is_win32(), reason="Fuzzer is linux only")
@pytest.mark.parametrize(
"path", subprocess.check_output("find Tests/fonts -type f", shell=True).split(b"\n")
)