mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Test 0
This commit is contained in:
parent
607acbf95e
commit
28e5b929f8
|
@ -59,8 +59,10 @@ class TestImageGrab:
|
|||
|
||||
@pytest.mark.skipif(sys.platform != "win32", reason="Windows only")
|
||||
def test_grab_invalid_handle(self) -> None:
|
||||
with pytest.raises(OSError):
|
||||
with pytest.raises(OSError, match="unable to get device context for handle"):
|
||||
ImageGrab.grab(window=-1)
|
||||
with pytest.raises(OSError, match="screen grab failed"):
|
||||
ImageGrab.grab(window=0)
|
||||
|
||||
def test_grabclipboard(self) -> None:
|
||||
if sys.platform == "darwin":
|
||||
|
|
Loading…
Reference in New Issue
Block a user