mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-23 22:49:55 +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.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"
|
|
||||||
)
|
)
|
||||||
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
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import os
|
||||||
import struct
|
import struct
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import os
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
@ -74,10 +74,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, reason="Valgrind is slower")
|
||||||
"PILLOW_VALGRIND_TEST" in os.environ,
|
|
||||||
reason="Valgrind is slower"
|
|
||||||
)
|
|
||||||
def test_oom() -> None:
|
def test_oom() -> None:
|
||||||
glyph = struct.pack(
|
glyph = struct.pack(
|
||||||
">hhhhhhhhhh", 1, 0, -32767, -32767, 32767, 32767, -32767, -32767, 32767, 32767
|
">hhhhhhhhhh", 1, 0, -32767, -32767, 32767, 32767, -32767, -32767, 32767, 32767
|
||||||
|
|
Loading…
Reference in New Issue
Block a user