Skip to content

Commit 96589c5

Browse files
committed
Increased timeout on ppc64le and big-endian
1 parent 8138533 commit 96589c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/test_file_tiff.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
assert_image_similar,
1919
assert_image_similar_tofile,
2020
hopper,
21+
is_big_endian,
22+
is_ppc64le,
2123
is_pypy,
2224
is_win32,
2325
)
@@ -950,7 +952,7 @@ def test_string_dimension(self) -> None:
950952
with pytest.raises(OSError):
951953
im.load()
952954

953-
@pytest.mark.timeout(6)
955+
@pytest.mark.timeout(10 if (is_ppc64le() or is_big_endian()) else 6)
954956
@pytest.mark.filterwarnings("ignore:Truncated File Read")
955957
def test_timeout(self, monkeypatch: pytest.MonkeyPatch) -> None:
956958
with Image.open("Tests/images/timeout-6646305047838720") as im:

0 commit comments

Comments
 (0)