Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix putdata() for I;16N on big-endian #7209

Merged
merged 16 commits into from
Mar 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
autosize TestImageBytes.sample_bytes
  • Loading branch information
Yay295 committed Mar 11, 2024
commit 79c9b2b26116a9671d0d814eab55284777830370
7 changes: 5 additions & 2 deletions Tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,11 @@ class TestImageBytes:
name for name, num_bands, pixelsize in image_modes if "BGR" not in name
]

# make this bigger if necessary
sample_bytes = bytes(range(16))
sample_bytes = bytes(
range(
2 * 2 * max(pixelsize for mode, num_bands, pixelsize in image_modes_not_bgr)
)
)

@pytest.mark.parametrize("mode", image_mode_names_not_bgr)
def test_roundtrip_bytes_constructor(self, mode):
Expand Down