[elbe-devel] [PATCH 09/10] test_pylint: Fix Pylint

Christian Teklenborg chris at linutronix.de
Tue Jun 22 16:52:33 CEST 2021


64:16: W0201: (Attribute 'stdout' defined outside __init__)
9:0: W0611: (Unused command_out imported from elbepack.shellhelper)

Signed-off-by: Christian Teklenborg <chris at linutronix.de>
---
 elbepack/tests/test_pylint.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/elbepack/tests/test_pylint.py b/elbepack/tests/test_pylint.py
index 8ef40f22..bcb3c7e1 100644
--- a/elbepack/tests/test_pylint.py
+++ b/elbepack/tests/test_pylint.py
@@ -6,11 +6,15 @@
 import os
 
 from elbepack.commands.test import ElbeTestCase, system, ElbeTestException
-from elbepack.shellhelper import command_out, system_out
+from elbepack.shellhelper import system_out
 from elbepack.directories import pack_dir, elbe_exe, elbe_dir
 
 class TestPylint(ElbeTestCase):
 
+    def __init__(self):
+        super().__init__()
+        self.stdout = None
+
     pylint_opts = ["--reports=n",
                    "--score=n",
                    "--rcfile=%s" % os.path.join(elbe_dir, ".pylintrc"),
-- 
2.20.1



More information about the elbe-devel mailing list