diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-05-29 20:53:21 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-05-29 20:53:21 +0200 |
commit | 6aeb3d81859a53b3ac779b881d6ab0e8035939fa (patch) | |
tree | b2c9da3138ed43825744bf1fbed268bf14632112 /tests/conftest.py | |
parent | 6356e80ecc3c94c1f2f4098105d3bdf4089f3c06 (diff) | |
download | qutebrowser-6aeb3d81859a53b3ac779b881d6ab0e8035939fa.tar.gz qutebrowser-6aeb3d81859a53b3ac779b881d6ab0e8035939fa.zip |
Refactor how we get OpenGL info
This allows us to get the version string in addition to the vendor. We also
show that version string in the version info output.
See #5313
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index c6b6c2efc..e698bde74 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -25,8 +25,6 @@ import os import sys import warnings import pathlib -import ctypes -import ctypes.util import pytest import hypothesis @@ -258,9 +256,7 @@ def set_backend(monkeypatch, request): @pytest.fixture(autouse=True, scope='session') def apply_libgl_workaround(): """Make sure we load libGL early so QtWebEngine tests run properly.""" - libgl = ctypes.util.find_library("GL") - if libgl is not None: - ctypes.CDLL(libgl, mode=ctypes.RTLD_GLOBAL) + utils.libgl_workaround() @pytest.fixture(autouse=True) |