Skip to content

Commit

Permalink
Ignore pylint's false positive on comprehension-escape
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Jun 14, 2018
1 parent a366b76 commit 075f8a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/brasil/gov/vcge/tests/test_setup.py
Expand Up @@ -78,7 +78,8 @@ def test_to1000_available(self):
step = [step for step in upgradeSteps
if (step[0]['dest'] == ('1000',)) and
(step[0]['source'] == ('0',))]
self.assertEqual(len(step), 1)
# XXX: https://github.com/PyCQA/pylint/issues/2130
self.assertEqual(len(step), 1) # pylint: disable=comprehension-escape

def test_to2000_available(self):

Expand All @@ -88,7 +89,8 @@ def test_to2000_available(self):
step = [step for step in upgradeSteps
if (step[0]['dest'] == ('2000',)) and
(step[0]['source'] == ('1000',))]
self.assertEqual(len(step), 1)
# XXX: https://github.com/PyCQA/pylint/issues/2130
self.assertEqual(len(step), 1) # pylint: disable=comprehension-escape


class TestUninstall(BaseTestCase):
Expand Down

0 comments on commit 075f8a0

Please sign in to comment.