diff --git a/Tests/oss-fuzz/test_fuzzers.py b/Tests/oss-fuzz/test_fuzzers.py index fb8f87e86..dc111c38b 100644 --- a/Tests/oss-fuzz/test_fuzzers.py +++ b/Tests/oss-fuzz/test_fuzzers.py @@ -57,8 +57,6 @@ def test_fuzz_fonts(path): with open(path, "rb") as f: try: fuzzers.fuzz_font(f.read()) - except (Image.DecompressionBombError, - Image.DecompressionBombWarning, - OSError): + except (Image.DecompressionBombError, Image.DecompressionBombWarning, OSError): pass assert True diff --git a/Tests/test_font_crash.py b/Tests/test_font_crash.py index e8d612a7f..27663f396 100644 --- a/Tests/test_font_crash.py +++ b/Tests/test_font_crash.py @@ -1,7 +1,7 @@ -from PIL import Image, ImageDraw, ImageFont - import pytest +from PIL import Image, ImageDraw, ImageFont + from .helper import skip_unless_feature