Fix lint
This commit is contained in:
parent
e2cdb5c8cf
commit
8a60855b88
@ -25,8 +25,8 @@ from PyQt5.QtWidgets import (QLineEdit, QWidget, QHBoxLayout, QLabel,
|
|||||||
from PyQt5.QtGui import QValidator, QPainter
|
from PyQt5.QtGui import QValidator, QPainter
|
||||||
|
|
||||||
from qutebrowser.config import config
|
from qutebrowser.config import config
|
||||||
from qutebrowser.utils import utils, qtutils, log, usertypes
|
from qutebrowser.utils import utils
|
||||||
from qutebrowser.misc import cmdhistory, objects
|
from qutebrowser.misc import cmdhistory
|
||||||
|
|
||||||
|
|
||||||
class MinimalLineEditMixin:
|
class MinimalLineEditMixin:
|
||||||
|
@ -107,9 +107,9 @@ class TestSet:
|
|||||||
monkeypatch.setattr(objects, 'backend', usertypes.Backend.QtWebKit)
|
monkeypatch.setattr(objects, 'backend', usertypes.Backend.QtWebKit)
|
||||||
option = 'content.javascript.enabled'
|
option = 'content.javascript.enabled'
|
||||||
|
|
||||||
with pytest.raises(
|
with pytest.raises(cmdexc.CommandError,
|
||||||
cmdexc.CommandError,
|
match=('Error while parsing http://: Pattern '
|
||||||
match='Error while parsing http://: Pattern without host'):
|
'without host')):
|
||||||
commands.set(0, option, 'false', pattern='http://')
|
commands.set(0, option, 'false', pattern='http://')
|
||||||
|
|
||||||
def test_set_no_pattern(self, monkeypatch, commands):
|
def test_set_no_pattern(self, monkeypatch, commands):
|
||||||
|
Loading…
Reference in New Issue
Block a user