Fix lint
This commit is contained in:
parent
1bc3d444b6
commit
85a9f6a08a
@ -31,8 +31,7 @@ from PyQt5.QtCore import (pyqtSignal, pyqtSlot, Qt, QEvent, QPoint, QPointF,
|
||||
from PyQt5.QtGui import QKeyEvent, QIcon
|
||||
from PyQt5.QtNetwork import QAuthenticator
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
from PyQt5.QtWebEngineWidgets import (QWebEnginePage, QWebEngineScript,
|
||||
QWebEngineCertificateError)
|
||||
from PyQt5.QtWebEngineWidgets import QWebEnginePage, QWebEngineScript
|
||||
|
||||
from qutebrowser.config import configdata, config
|
||||
from qutebrowser.browser import browsertab, mouse, shared
|
||||
|
@ -24,13 +24,12 @@ from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl, PYQT_VERSION
|
||||
from PyQt5.QtGui import QPalette
|
||||
from PyQt5.QtWidgets import QWidget
|
||||
from PyQt5.QtWebEngineWidgets import (QWebEngineView, QWebEnginePage,
|
||||
QWebEngineScript,
|
||||
QWebEngineCertificateError)
|
||||
QWebEngineScript)
|
||||
|
||||
from qutebrowser.browser import shared
|
||||
from qutebrowser.browser.webengine import webenginesettings, certificateerror
|
||||
from qutebrowser.config import config
|
||||
from qutebrowser.utils import log, debug, usertypes, jinja, objreg, qtutils
|
||||
from qutebrowser.utils import log, debug, usertypes, objreg, qtutils
|
||||
from qutebrowser.misc import miscwidgets
|
||||
|
||||
|
||||
|
@ -55,10 +55,10 @@ def ssl_error_page(request, quteproc):
|
||||
else:
|
||||
if not request.config.webengine:
|
||||
line = quteproc.wait_for(message='Error while loading *: SSL '
|
||||
'handshake failed')
|
||||
'handshake failed')
|
||||
line.expected = True
|
||||
quteproc.wait_for(message="Changing title for idx * to 'Error "
|
||||
"loading page: *'")
|
||||
"loading page: *'")
|
||||
content = quteproc.get_content().strip()
|
||||
assert "Unable to load page" in content
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user