making import of QtWebEngine in corresponding tests conditional
This commit is contained in:
parent
f22fb30ef3
commit
02f485cbc8
@ -23,8 +23,10 @@ from unittest import mock
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import QObject
|
from PyQt5.QtCore import QObject
|
||||||
from PyQt5.QtWebEngineWidgets import QWebEnginePage, QWebEngineScriptCollection
|
|
||||||
import pytest
|
import pytest
|
||||||
|
QtWebEngineWidgets = pytest.importorskip("PyQt5.QtWebEngineWidgets")
|
||||||
|
QWebEnginePage = QtWebEngineWidgets.QWebEnginePage
|
||||||
|
QWebEngineScriptCollection = QtWebEngineWidgets.QWebEngineScriptCollection
|
||||||
|
|
||||||
from qutebrowser.browser.webengine import webenginetab
|
from qutebrowser.browser.webengine import webenginetab
|
||||||
from qutebrowser.browser import greasemonkey
|
from qutebrowser.browser import greasemonkey
|
||||||
|
Loading…
Reference in New Issue
Block a user