Skip to content

Commit 20b49a3

Browse files
committed
Remove timeout as the specific reason,
pytest-timeout doesn't raise a timeout error.
1 parent ff50e30 commit 20b49a3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Tests/test_file_jpeg.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,8 +1036,7 @@ def test_save_xmp(self, tmp_path: Path) -> None:
10361036
@pytest.mark.timeout(timeout=1)
10371037
@pytest.mark.xfail(
10381038
"PILLOW_VALGRIND_TEST" in os.environ,
1039-
reason="Valgrind is slower",
1040-
raises=TimeoutError
1039+
reason="Valgrind is slower"
10411040
)
10421041
def test_eof(self, monkeypatch: pytest.MonkeyPatch) -> None:
10431042
# Even though this decoder never says that it is finished

Tests/test_imagefontpil.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def test_decompression_bomb() -> None:
7676
@pytest.mark.timeout(4)
7777
@pytest.mark.xfail(
7878
"PILLOW_VALGRIND_TEST" in os.environ,
79-
reason="Valgrind is slower",
80-
raises=TimeoutError
79+
reason="Valgrind is slower"
8180
)
8281
def test_oom() -> None:
8382
glyph = struct.pack(

0 commit comments

Comments
 (0)