There was an error while loading. Please reload this page.
1 parent 790ff22 commit d7c3451Copy full SHA for d7c3451
1 file changed
Tests/test_imagegrab.py
@@ -66,9 +66,7 @@ def test_grabclipboard(self):
66
else:
67
with pytest.raises(NotImplementedError) as e:
68
ImageGrab.grabclipboard()
69
- self.assertEqual(
70
- str(e.value), "ImageGrab.grabclipboard() is macOS and Windows only"
71
- )
+ assert str(e.value) == "ImageGrab.grabclipboard() is macOS and Windows only"
72
return
73
74
im = ImageGrab.grabclipboard()
0 commit comments