Fix lint/test issue

This commit is contained in:
Florian Bruhin 2018-12-15 16:50:15 +01:00
parent ba940f7f87
commit 4da680f41c
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ from qutebrowser.utils import log, utils, javascript, usertypes
from qutebrowser.browser import webelem
MYPY = False
if MYPY:
# pylint: disable=unused-import,useless-suppression
from qutebrowser.browser.webkit import webkittab

View File

@ -247,7 +247,7 @@ class TestWebKitElement:
pytest.param(lambda e: e[None], id='getitem'),
pytest.param(lambda e: operator.setitem(e, None, None), id='setitem'),
pytest.param(lambda e: operator.delitem(e, None), id='delitem'),
pytest.param(lambda e: None in e, id='contains'),
pytest.param(lambda e: '' in e, id='contains'),
pytest.param(list, id='iter'),
pytest.param(len, id='len'),
pytest.param(lambda e: e.has_frame(), id='has_frame'),