Break two long lines that were failing pylint.

This commit is contained in:
Ryan Roden-Corrent 2016-06-13 22:27:14 -04:00
parent f43f526c5b
commit 9578a3324e
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,8 @@ def whitelist_generator():
for name, member in inspect.getmembers(rfc6266, inspect.isclass):
for attr in ('grammar', 'regex'):
if hasattr(member, attr):
yield 'qutebrowser.browser.webkit.rfc6266.{}.{}'.format(name, attr)
yield 'qutebrowser.browser.webkit.rfc6266.{}.{}'.format(name,
attr)
# PyQt properties
for attr in ('prompt_active', 'command_active', 'insert_active',

View File

@ -276,7 +276,8 @@ class TestWebElementWrapper:
@pytest.mark.parametrize('is_null, expected', [
(False, "<qutebrowser.browser.webkit.webelem.WebElementWrapper "
"html='<fakeelem/>'>"),
(True, '<qutebrowser.browser.webkit.webelem.WebElementWrapper html=None>'),
(True, '<qutebrowser.browser.webkit.webelem.WebElementWrapper '
'html=None>'),
])
def test_repr(self, elem, is_null, expected):
elem._elem.isNull.return_value = is_null