Fix lint
This commit is contained in:
parent
642afb0aff
commit
1e42fd1319
@ -262,7 +262,7 @@ def get_backend(args):
|
||||
|
||||
def check_qt_version(backend):
|
||||
"""Check if the Qt version is recent enough."""
|
||||
from PyQt5.QtCore import qVersion, PYQT_VERSION, PYQT_VERSION_STR
|
||||
from PyQt5.QtCore import PYQT_VERSION, PYQT_VERSION_STR
|
||||
from qutebrowser.utils import qtutils, version
|
||||
if (qtutils.version_check('5.2.0', operator.lt, strict=True) or
|
||||
PYQT_VERSION < 0x050200):
|
||||
|
@ -66,7 +66,7 @@ def test_version_check(monkeypatch, qversion, compiled, version, op, expected):
|
||||
"""
|
||||
monkeypatch.setattr('qutebrowser.utils.qtutils.qVersion', lambda: qversion)
|
||||
if compiled is not None:
|
||||
monkeypatch.setattr('qutebrowser.utils.qtutils.QT_VERSION_STR', compiled)
|
||||
monkeypatch.setattr(qtutils, 'QT_VERSION_STR', compiled)
|
||||
strict = True
|
||||
else:
|
||||
strict = False
|
||||
|
Loading…
Reference in New Issue
Block a user