From d7c34511badd2695f6a1803f2090cd3dbea975a9 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 11 Mar 2020 22:53:35 +1100 Subject: [PATCH] Updated tests --- Tests/test_imagegrab.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tests/test_imagegrab.py b/Tests/test_imagegrab.py index 253b4ec2a..790847734 100644 --- a/Tests/test_imagegrab.py +++ b/Tests/test_imagegrab.py @@ -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()