diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-08-12 10:28:03 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-08-12 13:53:18 +0200 |
commit | bec1cbde23681595952b3604448b323000a2b49e (patch) | |
tree | eff41917641865d00261cb59487ceb8001975239 /xtesting/ci | |
parent | 569599f5950fcbf9c2c9f0fdf5f4b469babe573a (diff) |
Update pylint to 2.9.6
It stops filtering upper constraints by versions as python 2 (and 3.5)
dropped.
Change-Id: Ieb96d068ebda813e020a093f3291b4a9526402e4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/ci')
-rw-r--r-- | xtesting/ci/run_tests.py | 2 | ||||
-rw-r--r-- | xtesting/ci/tier_builder.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index 4477dedd..cf7fe425 100644 --- a/xtesting/ci/run_tests.py +++ b/xtesting/ci/run_tests.py @@ -113,7 +113,7 @@ class Runner(): @staticmethod def get_dict_by_test(testname): - # pylint: disable=bad-continuation,missing-docstring + # pylint: disable=missing-docstring with open(pkg_resources.resource_filename( 'xtesting', 'ci/testcases.yaml')) as tyaml: testcases_yaml = yaml.safe_load(tyaml) diff --git a/xtesting/ci/tier_builder.py b/xtesting/ci/tier_builder.py index 2b212205..9b8ac7df 100644 --- a/xtesting/ci/tier_builder.py +++ b/xtesting/ci/tier_builder.py @@ -86,31 +86,31 @@ class TierBuilder(): return tier_names def get_tier(self, tier_name): - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): if self.tier_objects[i].get_name() == tier_name: return self.tier_objects[i] return None def get_tier_name(self, test_name): - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): if self.tier_objects[i].is_test(test_name): return self.tier_objects[i].name return None def get_test(self, test_name): - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): if self.tier_objects[i].is_test(test_name): return self.tier_objects[i].get_test(test_name) return None def get_tests(self, tier_name): - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): if self.tier_objects[i].get_name() == tier_name: return self.tier_objects[i].get_tests() return None def __str__(self): output = "" - for i in range(0, len(self.tier_objects)): + for i, _ in enumerate(self.tier_objects): output += str(self.tier_objects[i]) + "\n" return output |