diff --git a/tests/unit/browser/test_signalfilter.py b/tests/unit/browser/test_signalfilter.py index 66b6bd57c..fb4ed474c 100644 --- a/tests/unit/browser/test_signalfilter.py +++ b/tests/unit/browser/test_signalfilter.py @@ -26,7 +26,6 @@ import pytest from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject from qutebrowser.browser import signalfilter -from qutebrowser.utils import objreg class Signaller(QObject): diff --git a/tests/unit/commands/test_argparser.py b/tests/unit/commands/test_argparser.py index 2ca6adede..4cd3e7ee1 100644 --- a/tests/unit/commands/test_argparser.py +++ b/tests/unit/commands/test_argparser.py @@ -25,7 +25,7 @@ import pytest from PyQt5.QtCore import QUrl from qutebrowser.commands import argparser, cmdexc -from qutebrowser.utils import usertypes, objreg +from qutebrowser.utils import usertypes Enum = usertypes.enum('Enum', ['foo', 'foo_bar']) diff --git a/tests/unit/config/test_configcommands.py b/tests/unit/config/test_configcommands.py index c4b188fb8..9c6a9e460 100644 --- a/tests/unit/config/test_configcommands.py +++ b/tests/unit/config/test_configcommands.py @@ -26,7 +26,7 @@ from PyQt5.QtCore import QUrl, QProcess from qutebrowser.config import configcommands from qutebrowser.commands import cmdexc -from qutebrowser.utils import objreg, usertypes +from qutebrowser.utils import usertypes from qutebrowser.misc import objects @@ -329,7 +329,7 @@ class TestEdit: commands.config_edit() - mock.assert_called_once_with(unittest.mock.any) + mock.assert_called_once_with(unittest.mock.ANY) assert not config_stub.val.content.javascript.enabled def test_error(self, commands, config_stub, patch_editor, message_mock,