Updated tests

This commit is contained in:
Andrew Murray 2020-03-11 22:53:35 +11:00
parent 790ff223fc
commit d7c34511ba

View File

@ -66,9 +66,7 @@ $bmp = New-Object Drawing.Bitmap 200, 200
else:
with pytest.raises(NotImplementedError) as e:
ImageGrab.grabclipboard()
self.assertEqual(
str(e.value), "ImageGrab.grabclipboard() is macOS and Windows only"
)
assert str(e.value) == "ImageGrab.grabclipboard() is macOS and Windows only"
return
im = ImageGrab.grabclipboard()