mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
no colors anymore, they want them to turn black
This commit is contained in:
parent
0ea13132a2
commit
bb6b991d8d
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user