Skip to content

Commit 3753257

Browse files
committed
Expand the xcb-util-errors test to include xshmgetimage
1 parent 3a0c78c commit 3753257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/test_gnu_linux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_region_out_of_monitor_bounds(display: str, backend: str) -> None:
191191
details = exc.value.details
192192
assert details
193193
assert isinstance(details, dict)
194-
if backend == "xgetimage" and mss.linux.xcb.LIB.errors is None:
194+
if backend in {"xgetimage", "xshmgetimage"} and mss.linux.xcb.LIB.errors is None:
195195
pytest.xfail("Error strings in XCB backends are only available with the xcb-util-errors library.")
196196
assert isinstance(details["error"], str)
197197

0 commit comments

Comments
 (0)