Skip test_opengl_vendor without QtOpenGL

The test fails on Ubuntu Xenial because QtOpenGL is not installed.
This isn't a problem with real-life usage though, as we only call it with
QtWebEngine, and that ensures that QtOpenGL is available.
This commit is contained in:
Florian Bruhin 2017-05-31 10:29:40 +02:00
parent 4cec9adce6
commit eac284d880

View File

@ -924,4 +924,5 @@ def test_version_output(git_commit, frozen, style, with_webkit,
reason="Needs Qt >= 5.4.")
def test_opengl_vendor():
"""Simply call version.opengl_vendor() and see if it doesn't crash."""
pytest.importorskip("PyQt5.QtOpenGL")
return version.opengl_vendor()