[elbe-devel] [PATCH v2 37/66] junit: Fix Pylint

Olivier Dion dion at linutronix.de
Fri Jun 5 19:07:01 CEST 2020


14:0:  R0205: (useless-object-inheritance)
48:12: W0612: (unused-variable)
57:0:  R0205: (useless-object-inheritance)
62:54: E1101: (no-member)
70:51: E1101: (no-member)

Signed-off-by: Olivier Dion <dion at linutronix.de>

squash! junit: Fix Pylint
---
 elbepack/junit.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/elbepack/junit.py b/elbepack/junit.py
index ab759332..7de96c21 100644
--- a/elbepack/junit.py
+++ b/elbepack/junit.py
@@ -10,7 +10,8 @@ import junit_xml as junit
 class TestException(Exception):
     pass
 
-
+# TODO:py3 Remove object inheritance
+# pylint: disable=useless-object-inheritance
 class TestSuite(object):
 
     test_dict = {}
@@ -45,17 +46,19 @@ class TestSuite(object):
         for test in self.node:
             try:
                 test_cases.append(self.do_test(test, self.target))
-            except TestException as E:
+            except TestException:
                 pass # TODO - Handle me!
         ts = junit.TestSuite(name=self.node.et.attrib["name"],
                              test_cases=test_cases)
         return ts
 
-
-#pylint: disable=too-few-public-methods,no-member
+# TODO:py3 - Remove object inheritance
+# pylint: disable=useless-object-inheritance
 @TestSuite.register("BaseTest", register=False)
 class BaseTest(object):
 
+    tag = None
+
     def __init__(self, node, target):
         super(BaseTest, self).__init__()
         self.node = node
-- 
2.27.0




More information about the elbe-devel mailing list