diff --git a/test/test_imagegrab.py b/test/test_imagegrab.py index fb953f435..2275d34a1 100644 --- a/test/test_imagegrab.py +++ b/test/test_imagegrab.py @@ -13,10 +13,10 @@ try: im = ImageGrab.grab() self.assert_image(im, im.mode, im.size) -except ImportError as v: +except ImportError: class TestImageCopy(PillowTestCase): def test_skip(self): - self.skipTest(v) + self.skipTest("ImportError") if __name__ == '__main__':