mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-22 22:19:46 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
20b49a332b
commit
c35082b619
|
@ -1035,8 +1035,7 @@ class TestFileJpeg:
|
|||
|
||||
@pytest.mark.timeout(timeout=1)
|
||||
@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_eof(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
# Even though this decoder never says that it is finished
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import struct
|
||||
from io import BytesIO
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
|
@ -74,10 +74,7 @@ def test_decompression_bomb() -> None:
|
|||
|
||||
|
||||
@pytest.mark.timeout(4)
|
||||
@pytest.mark.xfail(
|
||||
"PILLOW_VALGRIND_TEST" in os.environ,
|
||||
reason="Valgrind is slower"
|
||||
)
|
||||
@pytest.mark.xfail("PILLOW_VALGRIND_TEST" in os.environ, reason="Valgrind is slower")
|
||||
def test_oom() -> None:
|
||||
glyph = struct.pack(
|
||||
">hhhhhhhhhh", 1, 0, -32767, -32767, 32767, 32767, -32767, -32767, 32767, 32767
|
||||
|
|
Loading…
Reference in New Issue
Block a user