mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Use tuple instead of list
This commit is contained in:
parent
bce0f0d5a6
commit
26d5f4fcb1
|
@ -102,7 +102,7 @@ $ms = new-object System.IO.MemoryStream(, $bytes)
|
||||||
@pytest.mark.skipif(
|
@pytest.mark.skipif(
|
||||||
(
|
(
|
||||||
sys.platform != "linux"
|
sys.platform != "linux"
|
||||||
or not all(shutil.which(cmd) for cmd in ["wl-paste", "wl-copy"])
|
or not all(shutil.which(cmd) for cmd in ("wl-paste", "wl-copy"))
|
||||||
),
|
),
|
||||||
reason="Linux with wl-clipboard only",
|
reason="Linux with wl-clipboard only",
|
||||||
)
|
)
|
||||||
|
@ -111,5 +111,5 @@ $ms = new-object System.IO.MemoryStream(, $bytes)
|
||||||
image_path = "Tests/images/hopper." + ext
|
image_path = "Tests/images/hopper." + ext
|
||||||
with open(image_path, "rb") as fp:
|
with open(image_path, "rb") as fp:
|
||||||
subprocess.call(["wl-copy"], stdin=fp)
|
subprocess.call(["wl-copy"], stdin=fp)
|
||||||
im = ImageGrab.grabclipboard()
|
im = ImageGrab.grabclipboard()
|
||||||
assert_image_equal_tofile(im, image_path)
|
assert_image_equal_tofile(im, image_path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user