mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +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
|
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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user