Add workaround for unknown pylint no-member bug.

This commit is contained in:
Florian Bruhin 2015-01-20 00:04:59 +01:00
parent 958e67ab9e
commit 6d3f871119

View File

@ -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(),