diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-02-09 16:46:33 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-02-09 16:47:51 +0100 |
commit | 1d9f32f7d5e2d442c89831633a3bb39b24381d10 (patch) | |
tree | 460f7b63713c67fbb7b6c9eee070deaa9bc426a8 | |
parent | 7aa9979cb9a6ef3f774b67a126c9575d76f4a506 (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)
-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: |