From 658abf7b2b7579c9ca1cf1854cc3fc277740814f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 15 May 2017 13:39:15 +0200 Subject: [PATCH] Fix coverage on old Qt versions --- qutebrowser/browser/history.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/history.py b/qutebrowser/browser/history.py index 7cee19de3..001a57aa7 100644 --- a/qutebrowser/browser/history.py +++ b/qutebrowser/browser/history.py @@ -282,7 +282,9 @@ class WebHistory(QObject): """ if config.get('general', 'private-browsing'): return - if not url.isValid(): + if not url.isValid(): # pragma: no cover + # the no cover pragma is a WORKAROUND for this not being covered in + # old Qt versions. log.misc.warning("Ignoring invalid URL being added to history") return