mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Remove useless try catch block
This commit is contained in:
parent
6d12581385
commit
3d54b8e2b2
|
@ -111,9 +111,6 @@ $ms = new-object System.IO.MemoryStream(, $bytes)
|
|||
)
|
||||
def test_grabclipboard_wl_clipboard(self, image_path):
|
||||
with open(image_path, mode="rb") as raw_image:
|
||||
try:
|
||||
subprocess.call(["wl-copy"], stdin=raw_image)
|
||||
im = ImageGrab.grabclipboard()
|
||||
assert_image_equal_tofile(im, image_path)
|
||||
except OSError as e:
|
||||
pytest.skip(str(e))
|
||||
subprocess.call(["wl-copy"], stdin=raw_image)
|
||||
im = ImageGrab.grabclipboard()
|
||||
assert_image_equal_tofile(im, image_path)
|
||||
|
|
Loading…
Reference in New Issue
Block a user