[elbe-devel] [PATCH 06/10] test_preproc: Fix Pylint

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


33:16: W0201: (Attribute 'stdout' defined outside __init__)
10:0: W0611: (Unused command_out imported from elbepack.shellhelper)
10:0: W0611: (Unused system_out imported from elbepack.shellhelper)
11:0: W0611: (Unused pack_dir imported from elbepack.directories)

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

diff --git a/elbepack/tests/test_preproc.py b/elbepack/tests/test_preproc.py
index 62f39a34..71f599a7 100644
--- a/elbepack/tests/test_preproc.py
+++ b/elbepack/tests/test_preproc.py
@@ -7,11 +7,14 @@
 import os
 
 from elbepack.commands.test import ElbeTestCase, system, ElbeTestException
-from elbepack.shellhelper import command_out, system_out
-from elbepack.directories import pack_dir, elbe_exe, elbe_dir
+from elbepack.directories import elbe_exe, elbe_dir
 
 class TestPreproc(ElbeTestCase):
 
+    def __init__(self):
+        super().__init__()
+        self.stdout = None
+
     failure_set = {os.path.join(elbe_dir, path)
                    for path
                    in [
-- 
2.20.1



More information about the elbe-devel mailing list