summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-04-27 18:29:59 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-04-27 18:42:16 +0200
commit08dd993397bb8ed1b4b8bb76ce3402d6abbd32e4 (patch)
treea711fafdf7fa40a491cd4158363604a0fbba5a1c /tests/conftest.py
parentd296901b3ef326eb118519f9dbd0323f4fef0d06 (diff)
downloadqutebrowser-08dd993397bb8ed1b4b8bb76ce3402d6abbd32e4.tar.gz
qutebrowser-08dd993397bb8ed1b4b8bb76ce3402d6abbd32e4.zip
Only apply libgl workaround once for tests
This accidentally was a function-scoped instead of session-scoped fixture... It doesn't really make sense to do this again and again for every single test. This seems to result in a very big speedup for the unit tests: Together with the commit before this, the unit/ part of the testsuite takes 2:49 instead of 5:43 now...
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 0990e2702..f5e1fd1bb 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -255,7 +255,7 @@ def set_backend(monkeypatch, request):
monkeypatch.setattr(objects, 'backend', backend)
-@pytest.fixture(autouse=True)
+@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")