summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-10-18 18:58:15 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-10-18 18:58:15 +0300
commit7ea4ec76e796cb1d63fcb7be75f3bfce49a8845b (patch)
treed9fbd9a4a358763427ac7c61f636864d48adeb7d
parenta6c9f893f8631f564d102a852155d7f264a05132 (diff)
downloadpylint-7ea4ec76e796cb1d63fcb7be75f3bfce49a8845b.tar.gz
Disable not-iterable-context for a couple of false positives.
-rw-r--r--pylint/testutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pylint/testutils.py b/pylint/testutils.py
index adc4e0c..1d0c3c8 100644
--- a/pylint/testutils.py
+++ b/pylint/testutils.py
@@ -272,6 +272,7 @@ class LintTestUsingModule(unittest.TestCase):
def test_functionality(self):
tocheck = [self.package+'.'+self.module]
+ # pylint: disable=not-iterable-context; can't handle boolean checks for now
if self.depends:
tocheck += [self.package+'.%s' % name.replace('.py', '')
for name, _ in self.depends]
@@ -317,6 +318,7 @@ class LintTestUsingFile(LintTestUsingModule):
if not isdir(importable):
importable += '.py'
tocheck = [importable]
+ # pylint: disable=not-iterable-context; can't handle boolean checks for now
if self.depends:
tocheck += [join(self.INPUT_DIR, name) for name, _ in self.depends]
self._test(tocheck)