fix pylint test

This commit is contained in:
Tomas Groth 2018-07-05 22:33:07 +02:00
parent 588cf96b5a
commit ac14c0186d

View File

@ -68,7 +68,7 @@ class TestPylint(TestCase):
# WHEN: Running pylint
(pylint_stdout, pylint_stderr) = \
lint.py_run('openlp --errors-only --disable={disabled} --enable={enabled} '
lint.py_run('openlp --errors-only -j 4 --disable={disabled} --enable={enabled} '
'--reports=no --output-format=parseable'.format(disabled=disabled_checks,
enabled=enabled_checks),
**pylint_kwargs)
@ -88,7 +88,7 @@ class TestPylint(TestCase):
filtered_output = ''
for line in pylint_output.splitlines():
# Filter out module info lines
if line.startswith('**'):
if '***' in line:
continue
# Filter out undefined-variable error releated to WindowsError
elif 'undefined-variable' in line and 'WindowsError' in line: