Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bigcat88/pillow_heif
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 91fe62c5cb3d89ca3d4bc57bf72994e794ab5720
Choose a base ref
..
head repository: bigcat88/pillow_heif
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ee3b5adcc673c2b122909a1c82bce6096fa417b5
Choose a head ref
Showing with 4 additions and 6 deletions.
  1. +2 −4 pyproject.toml
  2. +2 −2 tests/read_test.py
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -41,9 +41,7 @@ before-build = [

[tool.black]
line-length = 120
target-versions = [
"py38",
]
target-version = [ "py38" ]
preview = true

[tool.ruff]
@@ -123,7 +121,7 @@ master.py-version = "3.8"
master.extension-pkg-allow-list = [
"_pillow_heif",
]
design.max-attributes = 12
design.max-attributes = 14
design.max-branches = 16
design.max-locals = 18
design.max-returns = 8
4 changes: 2 additions & 2 deletions tests/read_test.py
Original file line number Diff line number Diff line change
@@ -273,7 +273,7 @@ def test_read_image(convert_hdr_to_8bit: bool) -> bool:
assert image.info["bit_depth"] >= 8
assert image.stride >= minimal_stride
assert len(image.data) == image.stride * image.size[1]
if str(image_path).find("spatial_photo.HEIC") == -1:
if str(image_path).find("spatial_photo.heic") == -1:
assert "heif" not in image.info
return heif_file.info["bit_depth"] > 8

@@ -298,7 +298,7 @@ def test_pillow_read_images(image_path):
collect()
assert len(ImageSequence.Iterator(pillow_image)[i].tobytes())
assert isinstance(image.getxmp(), dict)
if str(image_path).find("spatial_photo.HEIC") == -1:
if str(image_path).find("spatial_photo.heic") == -1:
assert "heif" not in image.info
assert getattr(pillow_image, "fp") is None
if images_count > 1: