From d8bf9d4b559bcf6980a863b8305b40ff3d520784 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 3 Jun 2018 22:33:12 +0200 Subject: [PATCH] tests: skip display tests if pipe cannot create offscreen buffers --- tests/display/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/display/conftest.py b/tests/display/conftest.py index 88a2b5f3c3..36d498b9a3 100644 --- a/tests/display/conftest.py +++ b/tests/display/conftest.py @@ -68,7 +68,9 @@ def gsg(graphics_pipe, graphics_engine): ) graphics_engine.open_windows() - assert buffer is not None + if buffer is None: + pytest.skip("GraphicsPipe cannot make offscreen buffers") + yield buffer.gsg if buffer is not None: