Skip to content

Commit

Permalink
Use tuple instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 23, 2023
1 parent bce0f0d commit 26d5f4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/test_imagegrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_grabclipboard_png(self):
@pytest.mark.skipif(
(
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",
)
Expand All @@ -111,5 +111,5 @@ def test_grabclipboard_wl_clipboard(self, ext):
image_path = "Tests/images/hopper." + ext
with open(image_path, "rb") as fp:
subprocess.call(["wl-copy"], stdin=fp)
im = ImageGrab.grabclipboard()
assert_image_equal_tofile(im, image_path)
im = ImageGrab.grabclipboard()
assert_image_equal_tofile(im, image_path)

0 comments on commit 26d5f4f

Please sign in to comment.