Skip to content

Commit

Permalink
fix a couple of pylint warnings, invalid-name and unused-arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ssato committed Jun 2, 2015
1 parent b07bfb6 commit a6a940d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions anyconfig/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, *modules):
"""
self.masked = modules

def find_module(self, fullname, path=None):
def find_module(self, fullname):
return self if fullname in self.masked else None

def load_module(self, fullname):
Expand Down Expand Up @@ -70,9 +70,9 @@ def mask_modules(*modules):
class Test(unittest.TestCase):

def test_00___init__(self):
ms = ("lxml", "yaml", "json")
mil = MaskedImportLoader(*ms)
self.assertEquals(mil.masked, ms)
mods = ("lxml", "yaml", "json")
mil = MaskedImportLoader(*mods)
self.assertEquals(mil.masked, mods)

def test_10_find_module(self):
mil = MaskedImportLoader("lxml", "yaml")
Expand Down

0 comments on commit a6a940d

Please sign in to comment.