mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
autosize TestImageBytes.sample_bytes
This commit is contained in:
parent
43f3c822a7
commit
79c9b2b261
|
@ -1051,8 +1051,11 @@ class TestImageBytes:
|
||||||
name for name, num_bands, pixelsize in image_modes if "BGR" not in name
|
name for name, num_bands, pixelsize in image_modes if "BGR" not in name
|
||||||
]
|
]
|
||||||
|
|
||||||
# make this bigger if necessary
|
sample_bytes = bytes(
|
||||||
sample_bytes = bytes(range(16))
|
range(
|
||||||
|
2 * 2 * max(pixelsize for mode, num_bands, pixelsize in image_modes_not_bgr)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
@pytest.mark.parametrize("mode", image_mode_names_not_bgr)
|
@pytest.mark.parametrize("mode", image_mode_names_not_bgr)
|
||||||
def test_roundtrip_bytes_constructor(self, mode):
|
def test_roundtrip_bytes_constructor(self, mode):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user