mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44:31 +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):
|
def test_grabclipboard_wl_clipboard(self, image_path):
|
||||||
with open(image_path, mode="rb") as raw_image:
|
with open(image_path, mode="rb") as raw_image:
|
||||||
try:
|
subprocess.call(["wl-copy"], stdin=raw_image)
|
||||||
subprocess.call(["wl-copy"], stdin=raw_image)
|
im = ImageGrab.grabclipboard()
|
||||||
im = ImageGrab.grabclipboard()
|
assert_image_equal_tofile(im, image_path)
|
||||||
assert_image_equal_tofile(im, image_path)
|
|
||||||
except OSError as e:
|
|
||||||
pytest.skip(str(e))
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user