From 9bed79e42604d851e7f95321a913dcf7ed4cbaf3 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 14 Jan 2020 20:31:25 +1100 Subject: [PATCH] Test grab bbox --- Tests/test_imagegrab.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/test_imagegrab.py b/Tests/test_imagegrab.py index bea7f68b3..d7a4a00da 100644 --- a/Tests/test_imagegrab.py +++ b/Tests/test_imagegrab.py @@ -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"])