mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 11:26:27 +03:00
Skip fuzzer tests on windows
This commit is contained in:
parent
8b06fec6ab
commit
6189bca3bc
|
@ -1,11 +1,15 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
import fuzzers
|
import fuzzers
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
|
def is_win32():
|
||||||
|
sys.platform.startswith("win32")
|
||||||
|
|
||||||
|
@pytest.mark.skipif(is_win32(), reason="Fuzzer is linux only")
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"path",
|
"path",
|
||||||
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
|
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
|
# Known Image.* exceptions
|
||||||
assert True
|
assert True
|
||||||
|
|
||||||
|
@pytest.mark.skipif(is_win32(), reason="Fuzzer is linux only")
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"path", subprocess.check_output("find Tests/fonts -type f", shell=True).split(b"\n")
|
"path", subprocess.check_output("find Tests/fonts -type f", shell=True).split(b"\n")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user