diff options
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 84cae784b..0b8a6cd3a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -250,9 +250,9 @@ def _select_backend(config): # Fail early if selected backend is not available # pylint: disable=unused-import if backend == 'webkit': - import PyQt5.QtWebKitWidgets + import qutebrowser.qt elif backend == 'webengine': - import PyQt5.QtWebEngineWidgets + import qutebrowser.qt else: raise utils.Unreachable(backend) @@ -263,12 +263,12 @@ def _auto_select_backend(): # pylint: disable=unused-import try: # Try to use QtWebKit as the default backend - import PyQt5.QtWebKitWidgets + import qutebrowser.qt return 'webkit' except ImportError: # Try to use QtWebEngine as a fallback and fail early # if that's also not available - import PyQt5.QtWebEngineWidgets + import qutebrowser.qt return 'webengine' |