Skip to content

Commit

Permalink
Use implicit slice start
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
  • Loading branch information
Yay295 and radarhere authored Jul 14, 2023
1 parent aed48a5 commit 4a02c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ def test_roundtrip_bytes_method(self, mode):
@pytest.mark.parametrize(("mode", "num_bands", "pixelsize"), image_modes_not_bgr)
def test_pixels_after_getdata_putdata(self, mode, num_bands, pixelsize):
image_byte_size = 2 * 2 * pixelsize
start_bytes = self.sample_bytes[0:image_byte_size]
start_bytes = self.sample_bytes[:image_byte_size]
image = Image.frombytes(mode, (2, 2), start_bytes)

start_pixels = (
Expand Down

0 comments on commit 4a02c79

Please sign in to comment.