no colors anymore, they want them to turn black

This commit is contained in:
Eric Soroos 2021-03-14 13:49:36 +01:00
parent 0ea13132a2
commit bb6b991d8d

View File

@ -6,9 +6,11 @@ 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",
@ -20,12 +22,14 @@ def test_fuzz_images(path):
with open(path, "rb") as f:
fuzzers.fuzz_image(f.read())
assert True
except (OSError,
SyntaxError,
MemoryError,
ValueError,
NotImplementedError,
OverflowError):
except (
OSError,
SyntaxError,
MemoryError,
ValueError,
NotImplementedError,
OverflowError,
):
# Known exceptions that are through from Pillow
assert True
except (
@ -36,6 +40,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")