aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core/mts.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-02-09 16:46:33 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2021-02-09 16:46:33 +0100
commit8fc7c92cd3a8704aff806c2b9c500369b7360759 (patch)
tree1c0af0e28a67a462adb3d7423d2c72e98c54f85e /xtesting/core/mts.py
parentac46be525be6d76acfe43880e4fb735b1a4eaa86 (diff)
Take pylint's len-as-condition into account
Change-Id: Ib19de453857a2732d9c70a24539a96cd7129613d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/core/mts.py')
-rw-r--r--xtesting/core/mts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtesting/core/mts.py b/xtesting/core/mts.py
index a7ec9d23..ec6766d2 100644
--- a/xtesting/core/mts.py
+++ b/xtesting/core/mts.py
@@ -149,7 +149,7 @@ class MTSLauncher(testcase.TestCase):
"""Make sure that all required MTS test cases exist
in the XML test file.
"""
- if len(enabled_testcases) > 0:
+ if enabled_testcases:
# Verify if the MTS test case exists in the whole list of test
# cases declared in the test XML file
for enabled_testcase in enabled_testcases:
@@ -189,7 +189,7 @@ class MTSLauncher(testcase.TestCase):
enabled_testcases = kwargs[
"testcases"] if "testcases" in kwargs else []
enabled_testcases_str = ''
- if len(enabled_testcases) > 0:
+ if enabled_testcases:
enabled_testcases_str = ' '.join(enabled_testcases)
check_ok = self.check_enabled_mts_test_cases(enabled_testcases)
if not check_ok: