We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ecf88e commit 4f0cc40Copy full SHA for 4f0cc40
Tests/test_imagegrab.py
@@ -65,12 +65,12 @@ def test_grabclipboard(self):
65
p.communicate()
66
else:
67
if not shutil.which("wl-paste"):
68
- with pytest.raises(NotImplementedError) as e:
+ with pytest.raises(
69
+ NotImplementedError,
70
+ match="wl-paste or xclip is required for"
71
+ " ImageGrab.grabclipboard\(\) on Linux",
72
+ ):
73
ImageGrab.grabclipboard()
- assert (
- str(e.value) == "wl-paste or xclip is required"
- " for ImageGrab.grabclipboard() on Linux"
- )
74
return
75
76
0 commit comments