mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 17:33:08 +03:00
Test for incorrect PixelAccess arguments
This commit is contained in:
parent
bdbf1694fc
commit
7b4b356fc0
|
@ -71,6 +71,10 @@ class TestImagePutPixel(AccessTest):
|
||||||
pix1 = im1.load()
|
pix1 = im1.load()
|
||||||
pix2 = im2.load()
|
pix2 = im2.load()
|
||||||
|
|
||||||
|
for x, y in ((0, "0"), ("0", 0)):
|
||||||
|
with pytest.raises(TypeError):
|
||||||
|
pix1[x, y]
|
||||||
|
|
||||||
for y in range(im1.size[1]):
|
for y in range(im1.size[1]):
|
||||||
for x in range(im1.size[0]):
|
for x in range(im1.size[0]):
|
||||||
pix2[x, y] = pix1[x, y]
|
pix2[x, y] = pix1[x, y]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user