AVRuleTest: Diasable pycodestyle W605 check on single line instead of everywhere.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
Chris PeBenito 2020-09-26 14:04:38 -04:00
parent 4c99f49752
commit bef620512d
2 changed files with 1 additions and 4 deletions

View File

@ -143,7 +143,7 @@ class AVRuleTest(unittest.TestCase):
# permissions are stored in a set, so the order may vary
self.assertRegex(rule.statement(), "("
"allow a b:c { d1 d2 }; \[ cond103 ]"
"allow a b:c { d1 d2 }; \[ cond103 ]" # noqa
"|"
"allow a b:c { d2 d1 }; \[ cond103 ]"
")")

View File

@ -4,9 +4,6 @@ envlist = py3, pep8, lint, mypy
[pycodestyle]
max-line-length = 100
# W605 ignored because pycodestyle gets confused by a regex string
# in AVRuleTest test_103_statement_two_perms_cond
ignore = W605
[testenv:pep8]
deps = {[testenv]deps}