From e653aaee899e87b2b886251538c4eaa7b593e8b0 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 4 Jan 2023 00:43:48 +1100 Subject: [PATCH] NotImplementedError will not be raised if xclip is available --- Tests/test_imagegrab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_imagegrab.py b/Tests/test_imagegrab.py index 317db4c0120..fa88065f43c 100644 --- a/Tests/test_imagegrab.py +++ b/Tests/test_imagegrab.py @@ -64,7 +64,7 @@ def test_grabclipboard(self): ) p.communicate() else: - if not shutil.which("wl-paste"): + if not shutil.which("wl-paste") and not shutil.which("xclip"): with pytest.raises( NotImplementedError, match="wl-paste or xclip is required for"