[dts] [V1 3/5] framework/tester: fix pylama errors

Jun Dong junx.dong at intel.com
Fri Mar 11 03:00:19 CET 2022


Pylama found the following errors:
framework/tester.py:249: [E] E1136 Value 'self.duts' is unsubscriptable [pylint]
framework/tester.py:261: [E] E1133 Non-iterable value self.duts is used in an iterating context [pylint]

Signed-off-by: Jun Dong <junx.dong at intel.com>
---
 framework/tester.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/tester.py b/framework/tester.py
index ff3ecb61..8380ccf8 100644
--- a/framework/tester.py
+++ b/framework/tester.py
@@ -85,7 +85,7 @@ class Tester(Crb):
         check_crb_python_version(self)
 
         self.bgProcIsRunning = False
-        self.duts = None
+        self.duts = []
         self.inBg = 0
         self.scapyCmds = []
         self.bgCmds = []
-- 
2.25.1



More information about the dts mailing list