Test grab bbox

This commit is contained in:
Andrew Murray 2020-01-14 20:31:25 +11:00
parent 5439091355
commit 9bed79e426

View File

@ -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"])