diff options
author | 2021-02-09 16:46:33 +0100 | |
---|---|---|
committer | 2021-02-09 20:47:54 +0100 | |
commit | 319232ef3fbd76e9693382b71e030df19f938a14 (patch) | |
tree | 399754ecdc7b88468207132fc92884f5996e755d /xtesting/core | |
parent | ad6a3269ca1b2fae728edef5ac32946aa191150d (diff) |
Take pylint's len-as-condition into account
Change-Id: Ib19de453857a2732d9c70a24539a96cd7129613d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 8fc7c92cd3a8704aff806c2b9c500369b7360759)
(cherry picked from commit 5029cf1adddb5b3f25754bcc8c6b265e29678948)
Diffstat (limited to 'xtesting/core')
-rw-r--r-- | xtesting/core/mts.py | 4 |
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: |