Skip to content

Commit d7c3451

Browse files
committed
Updated tests
1 parent 790ff22 commit d7c3451

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Tests/test_imagegrab.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def test_grabclipboard(self):
6666
else:
6767
with pytest.raises(NotImplementedError) as e:
6868
ImageGrab.grabclipboard()
69-
self.assertEqual(
70-
str(e.value), "ImageGrab.grabclipboard() is macOS and Windows only"
71-
)
69+
assert str(e.value) == "ImageGrab.grabclipboard() is macOS and Windows only"
7270
return
7371

7472
im = ImageGrab.grabclipboard()

0 commit comments

Comments
 (0)