Catch subprocess.CalledProcessError in test_grab_x11 (#9578)

This commit is contained in:
Hugo van Kemenade 2026-04-21 13:17:20 +03:00 committed by GitHub
commit 9f6a6a6921
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ class TestImageGrab:
ImageGrab.grab()
ImageGrab.grab(xdisplay="")
except OSError as e:
except (OSError, subprocess.CalledProcessError) as e:
pytest.skip(str(e))
@pytest.mark.skipif(Image.core.HAVE_XCB, reason="tests missing XCB")