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 from PIL import Image
def is_win32(): def is_win32():
sys.platform.startswith("win32") sys.platform.startswith("win32")
@pytest.mark.skipif(is_win32(), reason="Fuzzer is linux only") @pytest.mark.skipif(is_win32(), reason="Fuzzer is linux only")
@pytest.mark.parametrize( @pytest.mark.parametrize(
"path", "path",
@ -20,12 +22,14 @@ def test_fuzz_images(path):
with open(path, "rb") as f: with open(path, "rb") as f:
fuzzers.fuzz_image(f.read()) fuzzers.fuzz_image(f.read())
assert True assert True
except (OSError, except (
SyntaxError, OSError,
MemoryError, SyntaxError,
ValueError, MemoryError,
NotImplementedError, ValueError,
OverflowError): NotImplementedError,
OverflowError,
):
# Known exceptions that are through from Pillow # Known exceptions that are through from Pillow
assert True assert True
except ( except (
@ -36,6 +40,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.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")