Updated pylint ignore comments

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-09-28 21:11:45 +05:30
parent a3dceb8b3e
commit 9ba26cacae
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A
2 changed files with 4 additions and 4 deletions

View File

@ -201,7 +201,7 @@ class BMConfigParser(SafeConfigParser):
continue
def readfp(self, fp, filename=None):
# pylint: no-member=ignore
# pylint: disable=no-member
SafeConfigParser.read_file(self, fp)
else:
@staticmethod

View File

@ -47,8 +47,8 @@ class TestConfig(unittest.TestCase):
def tearDown(self):
"""restore to the backup of BMConfigparser"""
# pylint: protected-access=ignore
BMConfigParser()._reset()
# pylint: disable=protected-access
BMConfigParser()._reset()
BMConfigParser().readfp(self.configfile)
def test_safeGet(self):
@ -91,7 +91,7 @@ class TestConfig(unittest.TestCase):
self.assertEqual(
BMConfigParser().safeGetInt('bitmessagesettings', 'maxaddrperstreamsend'), 100)
# pylint: protected-access=ignore
# pylint: disable=protected-access
BMConfigParser()._reset()
self.assertEqual(
BMConfigParser().safeGetInt('bitmessagesettings', 'maxaddrperstreamsend'), 500)