Add workaround for unknown pylint no-member bug.
This commit is contained in:
parent
958e67ab9e
commit
6d3f871119
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user