mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Added test
This commit is contained in:
parent
4f6f5f9182
commit
3c2e374824
BIN
Tests/images/chi.gif
Normal file
BIN
Tests/images/chi.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
|
@ -52,6 +52,13 @@ class TestImageDraw(PillowTestCase):
|
|||
self.assertRaises(Exception, lambda: draw.setink(0))
|
||||
self.assertRaises(Exception, lambda: draw.setfill(0))
|
||||
|
||||
def test_valueerror(self):
|
||||
im = Image.open("Tests/images/chi.gif")
|
||||
|
||||
draw = ImageDraw.Draw(im)
|
||||
draw.line(((0, 0)), fill=(0, 0, 0))
|
||||
del draw
|
||||
|
||||
def test_mode_mismatch(self):
|
||||
im = hopper("RGB").copy()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user