mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-13 01:05:48 +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
a0927be178
commit
9021829f7e
|
@ -1,14 +1,10 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any # undone
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from .helper import (
|
from .helper import (
|
||||||
assert_deep_equal,
|
|
||||||
assert_image_equal,
|
|
||||||
hopper,
|
hopper,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -43,7 +39,6 @@ def test_invalid_array_size():
|
||||||
Image.fromarrow(img, "RGB", (10, 10))
|
Image.fromarrow(img, "RGB", (10, 10))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_release_schema():
|
def test_release_schema():
|
||||||
# these should not error out, valgrind should be clean
|
# these should not error out, valgrind should be clean
|
||||||
img = hopper("L")
|
img = hopper("L")
|
||||||
|
|
|
@ -69,7 +69,6 @@ def test_to_array(mode: str, dtype: Any, mask: Any) -> None:
|
||||||
assert_image_equal(img, reloaded)
|
assert_image_equal(img, reloaded)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_lifetime():
|
def test_lifetime():
|
||||||
# valgrind shouldn't error out here.
|
# valgrind shouldn't error out here.
|
||||||
# arrays should be accessible after the image is deleted.
|
# arrays should be accessible after the image is deleted.
|
||||||
|
|
|
@ -54,6 +54,10 @@ optional-dependencies.fpx = [
|
||||||
optional-dependencies.mic = [
|
optional-dependencies.mic = [
|
||||||
"olefile",
|
"olefile",
|
||||||
]
|
]
|
||||||
|
optional-dependencies.test-arrow = [
|
||||||
|
"pyarrow",
|
||||||
|
]
|
||||||
|
|
||||||
optional-dependencies.tests = [
|
optional-dependencies.tests = [
|
||||||
"check-manifest",
|
"check-manifest",
|
||||||
"coverage>=7.4.2",
|
"coverage>=7.4.2",
|
||||||
|
@ -68,10 +72,6 @@ optional-dependencies.tests = [
|
||||||
"trove-classifiers>=2024.10.12",
|
"trove-classifiers>=2024.10.12",
|
||||||
]
|
]
|
||||||
|
|
||||||
optional-dependencies.test-arrow = [
|
|
||||||
"pyarrow",
|
|
||||||
]
|
|
||||||
|
|
||||||
optional-dependencies.typing = [
|
optional-dependencies.typing = [
|
||||||
"typing-extensions; python_version<'3.10'",
|
"typing-extensions; python_version<'3.10'",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user