[IMP] test_pylint: do not load default config file

This will avoid useless warning when the file does not exists and
possible false positive errors in case of invalid config in this file.

Also strip output
This commit is contained in:
Christophe Simonis
2017-08-07 15:02:56 +02:00
parent 0ebe59f5d0
commit c955c3051c
+2 -1
View File
@@ -114,6 +114,7 @@ class TestPyLint(TransactionCase):
paths.append(module_path)
options = [
'--rcfile=%s' % os.devnull,
'--disable=all',
'--enable=%s' % ','.join(self.ENABLED_CODES),
'--reports=n',
@@ -138,4 +139,4 @@ class TestPyLint(TransactionCase):
else:
out, err = process.communicate()
if process.returncode:
self.fail("\n" + out + "\n" + err)
self.fail("pylint test failed:\n" + (out + "\n" + err).strip())