From 0d037c74d450e67747fe082b0e351a1816d22d4b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 1 Jul 2014 07:57:19 +0200 Subject: [PATCH] Fix lint --- qutebrowser/test/keyinput/__init__.py | 1 + qutebrowser/test/keyinput/test_basekeyparser.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/qutebrowser/test/keyinput/__init__.py b/qutebrowser/test/keyinput/__init__.py index e69de29bb..793f3d99b 100644 --- a/qutebrowser/test/keyinput/__init__.py +++ b/qutebrowser/test/keyinput/__init__.py @@ -0,0 +1 @@ +"""Tests for qutebrowser.keyinput.""" diff --git a/qutebrowser/test/keyinput/test_basekeyparser.py b/qutebrowser/test/keyinput/test_basekeyparser.py index ae42a5bf6..91b04306e 100644 --- a/qutebrowser/test/keyinput/test_basekeyparser.py +++ b/qutebrowser/test/keyinput/test_basekeyparser.py @@ -17,6 +17,8 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . +# pylint: disable=protected-access + """Tests for BaseKeyParser.""" import unittest @@ -61,7 +63,7 @@ class NormalizeTests(unittest.TestCase): def test_normalize(self): """Test normalize with some strings.""" - STRINGS = ( + strings = ( ('Control+x', 'Ctrl+X'), ('Windows+x', 'Meta+X'), ('Mod1+x', 'Alt+X'), @@ -69,7 +71,7 @@ class NormalizeTests(unittest.TestCase): ('Control--', 'Ctrl+-'), ('Windows++', 'Meta++'), ) - for orig, repl in STRINGS: + for orig, repl in strings: self.assertEqual(self.kp._normalize_keystr(orig), repl, orig)