From 3f15186a64184588b26809ab03759e00effd81ae Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 6 Jan 2016 17:52:44 +0100 Subject: [PATCH] Add some coverage pragmas for caret workarounds. --- qutebrowser/browser/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 1cc82a994..76b267121 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1462,11 +1462,11 @@ class CommandDispatcher: webview = self._current_widget() if not webview.selection_enabled: act = [QWebPage.MoveToNextWord] - if sys.platform == 'win32': + if sys.platform == 'win32': # pragma: no cover act.append(QWebPage.MoveToPreviousChar) else: act = [QWebPage.SelectNextWord] - if sys.platform == 'win32': + if sys.platform == 'win32': # pragma: no cover act.append(QWebPage.SelectPreviousChar) for _ in range(count): for a in act: @@ -1483,11 +1483,11 @@ class CommandDispatcher: webview = self._current_widget() if not webview.selection_enabled: act = [QWebPage.MoveToNextWord] - if sys.platform != 'win32': + if sys.platform != 'win32': # pragma: no branch act.append(QWebPage.MoveToNextChar) else: act = [QWebPage.SelectNextWord] - if sys.platform != 'win32': + if sys.platform != 'win32': # pragma: no branch act.append(QWebPage.SelectNextChar) for _ in range(count): for a in act: