summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2018-03-06 21:44:37 +0100
committerFlorian Bruhin <git@the-compiler.org>2018-03-06 21:44:37 +0100
commit8a60855b88b582b3ace9c107a5869ea64aaea6bd (patch)
treed14a1b9ffc356221ff937d9408a843ff88882ce6
parente2cdb5c8cf184d652788943159318d2cc4c6d60c (diff)
downloadqutebrowser-8a60855b88b582b3ace9c107a5869ea64aaea6bd.tar.gz
qutebrowser-8a60855b88b582b3ace9c107a5869ea64aaea6bd.zip
Fix lint
-rw-r--r--qutebrowser/misc/miscwidgets.py4
-rw-r--r--tests/unit/config/test_configcommands.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/qutebrowser/misc/miscwidgets.py b/qutebrowser/misc/miscwidgets.py
index 0867d120c..ffdfc951a 100644
--- a/qutebrowser/misc/miscwidgets.py
+++ b/qutebrowser/misc/miscwidgets.py
@@ -25,8 +25,8 @@ from PyQt5.QtWidgets import (QLineEdit, QWidget, QHBoxLayout, QLabel,
from PyQt5.QtGui import QValidator, QPainter
from qutebrowser.config import config
-from qutebrowser.utils import utils, qtutils, log, usertypes
-from qutebrowser.misc import cmdhistory, objects
+from qutebrowser.utils import utils
+from qutebrowser.misc import cmdhistory
class MinimalLineEditMixin:
diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py
index 80328a22d..6434a1c9c 100644
--- a/tests/unit/config/test_configcommands.py
+++ b/tests/unit/config/test_configcommands.py
@@ -107,9 +107,9 @@ class TestSet:
monkeypatch.setattr(objects, 'backend', usertypes.Backend.QtWebKit)
option = 'content.javascript.enabled'
- with pytest.raises(
- cmdexc.CommandError,
- match='Error while parsing http://: Pattern without host'):
+ with pytest.raises(cmdexc.CommandError,
+ match=('Error while parsing http://: Pattern '
+ 'without host')):
commands.set(0, option, 'false', pattern='http://')
def test_set_no_pattern(self, monkeypatch, commands):