NotImplementedError will not be raised if xclip is available

This commit is contained in:
Andrew Murray 2023-01-04 00:43:48 +11:00
parent f5c47ebe12
commit e653aaee89

View File

@ -64,7 +64,7 @@ $bmp = New-Object Drawing.Bitmap 200, 200
) )
p.communicate() p.communicate()
else: else:
if not shutil.which("wl-paste"): if not shutil.which("wl-paste") and not shutil.which("xclip"):
with pytest.raises( with pytest.raises(
NotImplementedError, NotImplementedError,
match="wl-paste or xclip is required for" match="wl-paste or xclip is required for"