Remove timeout as the specific reason,

pytest-timeout doesn't raise a timeout error.
This commit is contained in:
Eric Soroos 2025-05-17 10:45:43 +02:00
parent ff50e30d3e
commit 20b49a332b
2 changed files with 2 additions and 4 deletions

View File

@ -1036,8 +1036,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"
raises=TimeoutError
) )
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

@ -76,8 +76,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, "PILLOW_VALGRIND_TEST" in os.environ,
reason="Valgrind is slower", reason="Valgrind is slower"
raises=TimeoutError
) )
def test_oom() -> None: def test_oom() -> None:
glyph = struct.pack( glyph = struct.pack(