Updated pylint ignore comments
This commit is contained in:
parent
a3dceb8b3e
commit
9ba26cacae
|
@ -201,7 +201,7 @@ class BMConfigParser(SafeConfigParser):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
def readfp(self, fp, filename=None):
|
def readfp(self, fp, filename=None):
|
||||||
# pylint: no-member=ignore
|
# pylint: disable=no-member
|
||||||
SafeConfigParser.read_file(self, fp)
|
SafeConfigParser.read_file(self, fp)
|
||||||
else:
|
else:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -47,7 +47,7 @@ class TestConfig(unittest.TestCase):
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""restore to the backup of BMConfigparser"""
|
"""restore to the backup of BMConfigparser"""
|
||||||
# pylint: protected-access=ignore
|
# pylint: disable=protected-access
|
||||||
BMConfigParser()._reset()
|
BMConfigParser()._reset()
|
||||||
BMConfigParser().readfp(self.configfile)
|
BMConfigParser().readfp(self.configfile)
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class TestConfig(unittest.TestCase):
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
BMConfigParser().safeGetInt('bitmessagesettings', 'maxaddrperstreamsend'), 100)
|
BMConfigParser().safeGetInt('bitmessagesettings', 'maxaddrperstreamsend'), 100)
|
||||||
# pylint: protected-access=ignore
|
# pylint: disable=protected-access
|
||||||
BMConfigParser()._reset()
|
BMConfigParser()._reset()
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
BMConfigParser().safeGetInt('bitmessagesettings', 'maxaddrperstreamsend'), 500)
|
BMConfigParser().safeGetInt('bitmessagesettings', 'maxaddrperstreamsend'), 500)
|
||||||
|
|
Reference in New Issue
Block a user