From 6d3f871119a3907cad93537425a986cf4d105cf6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 20 Jan 2015 00:04:59 +0100 Subject: [PATCH] Add workaround for unknown pylint no-member bug. --- qutebrowser/test/config/test_config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qutebrowser/test/config/test_config.py b/qutebrowser/test/config/test_config.py index 7555df655..e27c49063 100644 --- a/qutebrowser/test/config/test_config.py +++ b/qutebrowser/test/config/test_config.py @@ -58,6 +58,9 @@ class ConfigParserTests(unittest.TestCase): def test_transformed_option_old(self): """Test a transformed option with the old name.""" + # WORKAROUND for unknown PyQt bug + # Instance of 'str' has no 'name' member + # pylint: disable=no-member self.cp.read_dict({'colors': {'tab.fg.odd': 'pink'}}) self.cfg._from_cp(self.cp) self.assertEqual(self.cfg.get('colors', 'tabs.fg.odd').name(), @@ -65,6 +68,9 @@ class ConfigParserTests(unittest.TestCase): def test_transformed_option_new(self): """Test a transformed section with the new name.""" + # WORKAROUND for unknown PyQt bug + # Instance of 'str' has no 'name' member + # pylint: disable=no-member self.cp.read_dict({'colors': {'tabs.fg.odd': 'pink'}}) self.cfg._from_cp(self.cp) self.assertEqual(self.cfg.get('colors', 'tabs.fg.odd').name(),