Skip to content

Commit c35082b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 20b49a3 commit c35082b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Tests/test_file_jpeg.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,7 @@ def test_save_xmp(self, tmp_path: Path) -> None:
10351035

10361036
@pytest.mark.timeout(timeout=1)
10371037
@pytest.mark.xfail(
1038-
"PILLOW_VALGRIND_TEST" in os.environ,
1039-
reason="Valgrind is slower"
1038+
"PILLOW_VALGRIND_TEST" in os.environ, reason="Valgrind is slower"
10401039
)
10411040
def test_eof(self, monkeypatch: pytest.MonkeyPatch) -> None:
10421041
# Even though this decoder never says that it is finished

Tests/test_imagefontpil.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

3+
import os
34
import struct
45
from io import BytesIO
5-
import os
66

77
import pytest
88

@@ -74,10 +74,7 @@ def test_decompression_bomb() -> None:
7474

7575

7676
@pytest.mark.timeout(4)
77-
@pytest.mark.xfail(
78-
"PILLOW_VALGRIND_TEST" in os.environ,
79-
reason="Valgrind is slower"
80-
)
77+
@pytest.mark.xfail("PILLOW_VALGRIND_TEST" in os.environ, reason="Valgrind is slower")
8178
def test_oom() -> None:
8279
glyph = struct.pack(
8380
">hhhhhhhhhh", 1, 0, -32767, -32767, 32767, 32767, -32767, -32767, 32767, 32767

0 commit comments

Comments
 (0)