[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-23 13:37:02 +00:00
parent 60a1a20536
commit c63db77db3

View File

@ -991,8 +991,7 @@ class TestFileTiff:
@pytest.mark.timeout(6) @pytest.mark.timeout(6)
@pytest.mark.filterwarnings("ignore:Truncated File Read") @pytest.mark.filterwarnings("ignore:Truncated File Read")
@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_timeout(self, monkeypatch: pytest.MonkeyPatch) -> None: def test_timeout(self, monkeypatch: pytest.MonkeyPatch) -> None:
with Image.open("Tests/images/timeout-6646305047838720") as im: with Image.open("Tests/images/timeout-6646305047838720") as im:
@ -1007,8 +1006,7 @@ class TestFileTiff:
) )
@pytest.mark.timeout(2) @pytest.mark.timeout(2)
@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_oom(self, test_file: str) -> None: def test_oom(self, test_file: str) -> None:
with pytest.raises(UnidentifiedImageError): with pytest.raises(UnidentifiedImageError):