[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-05-17 08:47:59 +00:00
parent 20b49a332b
commit c35082b619
2 changed files with 3 additions and 7 deletions

View File

@ -1035,8 +1035,7 @@ class TestFileJpeg:
@pytest.mark.timeout(timeout=1) @pytest.mark.timeout(timeout=1)
@pytest.mark.xfail( @pytest.mark.xfail(
"PILLOW_VALGRIND_TEST" in os.environ, "PILLOW_VALGRIND_TEST" in os.environ, reason="Valgrind is slower"
reason="Valgrind is slower"
) )
def test_eof(self, monkeypatch: pytest.MonkeyPatch) -> None: def test_eof(self, monkeypatch: pytest.MonkeyPatch) -> None:
# Even though this decoder never says that it is finished # Even though this decoder never says that it is finished

View File

@ -1,8 +1,8 @@
from __future__ import annotations from __future__ import annotations
import os
import struct import struct
from io import BytesIO from io import BytesIO
import os
import pytest import pytest
@ -74,10 +74,7 @@ def test_decompression_bomb() -> None:
@pytest.mark.timeout(4) @pytest.mark.timeout(4)
@pytest.mark.xfail( @pytest.mark.xfail("PILLOW_VALGRIND_TEST" in os.environ, reason="Valgrind is slower")
"PILLOW_VALGRIND_TEST" in os.environ,
reason="Valgrind is slower"
)
def test_oom() -> None: def test_oom() -> None:
glyph = struct.pack( glyph = struct.pack(
">hhhhhhhhhh", 1, 0, -32767, -32767, 32767, 32767, -32767, -32767, 32767, 32767 ">hhhhhhhhhh", 1, 0, -32767, -32767, 32767, 32767, -32767, -32767, 32767, 32767