tests: don't assert if pipe cannot create physical windows

This commit is contained in:
rdb 2018-03-08 11:41:00 +01:00
parent 15f6ed1ba2
commit bfff7e1000

View File

@ -41,7 +41,9 @@ def window(graphics_pipe, graphics_engine):
) )
graphics_engine.open_windows() graphics_engine.open_windows()
assert win is not None if win is None:
pytest.skip("GraphicsPipe cannot make windows")
yield win yield win
if win is not None: if win is not None: