Skip to content

Commit 4a02c79

Browse files
Yay295radarhere
andauthored
Use implicit slice start
Co-authored-by: Andrew Murray <[email protected]>
1 parent aed48a5 commit 4a02c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ def test_roundtrip_bytes_method(self, mode):
10101010
@pytest.mark.parametrize(("mode", "num_bands", "pixelsize"), image_modes_not_bgr)
10111011
def test_pixels_after_getdata_putdata(self, mode, num_bands, pixelsize):
10121012
image_byte_size = 2 * 2 * pixelsize
1013-
start_bytes = self.sample_bytes[0:image_byte_size]
1013+
start_bytes = self.sample_bytes[:image_byte_size]
10141014
image = Image.frombytes(mode, (2, 2), start_bytes)
10151015

10161016
start_pixels = (

0 commit comments

Comments
 (0)