diff --git a/qutebrowser/misc/sessions.py b/qutebrowser/misc/sessions.py index fc377304f..95e52c1a2 100644 --- a/qutebrowser/misc/sessions.py +++ b/qutebrowser/misc/sessions.py @@ -27,7 +27,7 @@ from PyQt5.QtWidgets import QApplication import yaml try: from yaml import CSafeLoader as YamlLoader, CSafeDumper as YamlDumper -except ImportError: +except ImportError: # pragma: no cover from yaml import SafeLoader as YamlLoader, SafeDumper as YamlDumper from qutebrowser.browser import tabhistory diff --git a/tests/unit/javascript/conftest.py b/tests/unit/javascript/conftest.py index 294da5d49..1b9e702c7 100644 --- a/tests/unit/javascript/conftest.py +++ b/tests/unit/javascript/conftest.py @@ -26,7 +26,7 @@ import logging import pytest import jinja2 from PyQt5.QtWebKit import QWebSettings -from PyQt5.QtWebKitWidgets import QWebView, QWebPage +from PyQt5.QtWebKitWidgets import QWebPage from qutebrowser.utils import utils