Skip to content

Commit 9021829

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

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Tests/test_arrow.py

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

3-
from typing import Any # undone
4-
53
import pytest
64

75
from PIL import Image
86

97
from .helper import (
10-
assert_deep_equal,
11-
assert_image_equal,
128
hopper,
139
)
1410

@@ -43,7 +39,6 @@ def test_invalid_array_size():
4339
Image.fromarrow(img, "RGB", (10, 10))
4440

4541

46-
4742
def test_release_schema():
4843
# these should not error out, valgrind should be clean
4944
img = hopper("L")

Tests/test_pyarrow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def test_to_array(mode: str, dtype: Any, mask: Any) -> None:
6969
assert_image_equal(img, reloaded)
7070

7171

72-
7372
def test_lifetime():
7473
# valgrind shouldn't error out here.
7574
# arrays should be accessible after the image is deleted.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ optional-dependencies.fpx = [
5454
optional-dependencies.mic = [
5555
"olefile",
5656
]
57+
optional-dependencies.test-arrow = [
58+
"pyarrow",
59+
]
60+
5761
optional-dependencies.tests = [
5862
"check-manifest",
5963
"coverage>=7.4.2",
@@ -68,10 +72,6 @@ optional-dependencies.tests = [
6872
"trove-classifiers>=2024.10.12",
6973
]
7074

71-
optional-dependencies.test-arrow = [
72-
"pyarrow",
73-
]
74-
7575
optional-dependencies.typing = [
7676
"typing-extensions; python_version<'3.10'",
7777
]

0 commit comments

Comments
 (0)