mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Test grab bbox
This commit is contained in:
parent
5439091355
commit
9bed79e426
|
@ -15,6 +15,9 @@ try:
|
|||
]:
|
||||
self.assert_image(im, im.mode, im.size)
|
||||
|
||||
im = ImageGrab.grab(bbox=(10, 20, 50, 80))
|
||||
self.assert_image(im, im.mode, (40, 60))
|
||||
|
||||
def test_grabclipboard(self):
|
||||
if sys.platform == "darwin":
|
||||
subprocess.call(["screencapture", "-cx"])
|
||||
|
|
Loading…
Reference in New Issue
Block a user