tests: skip display tests if pipe cannot create offscreen buffers

This commit is contained in:
rdb 2018-06-03 22:33:12 +02:00
parent c08339e8ce
commit d8bf9d4b55
1 changed files with 3 additions and 1 deletions

View File

@ -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: