From 1d9f32f7d5e2d442c89831633a3bb39b24381d10 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 9 Feb 2021 16:46:33 +0100 Subject: Take pylint's len-as-condition into account MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib19de453857a2732d9c70a24539a96cd7129613d Signed-off-by: Cédric Ollivier (cherry picked from commit 8fc7c92cd3a8704aff806c2b9c500369b7360759) --- xtesting/core/mts.py | 4 ++-- 1 file 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: -- cgit 1.2.3-korg