From 7b24ea8dfe1667fe00b87cac9f0a0ca670b6a86f Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 26 Jul 2019 12:58:04 +0200 Subject: Switch to Python 3.7 and Alpine 3.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It also allows building docs as doc8 is broken due to latest OpenStack's upper-constraints. pylint is updated to 2.3.1 (lastest py3.7 version) It disables perm as umask is currently false on lf-virtual1. Change-Id: I8568eeafa44c5dba72e206c532c1f50e3ad547f2 Signed-off-by: Cédric Ollivier --- xtesting/ci/run_tests.py | 5 ++--- xtesting/ci/tier_builder.py | 2 +- xtesting/ci/tier_handler.py | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'xtesting/ci') diff --git a/xtesting/ci/run_tests.py b/xtesting/ci/run_tests.py index 94bf2787..5e2b49e5 100644 --- a/xtesting/ci/run_tests.py +++ b/xtesting/ci/run_tests.py @@ -46,10 +46,9 @@ class Result(enum.Enum): class BlockingTestFailed(Exception): """Exception when the blocking test fails""" - pass -class RunTestsParser(object): +class RunTestsParser(): """Parser to run tests""" # pylint: disable=too-few-public-methods @@ -78,7 +77,7 @@ class RunTestsParser(object): return vars(self.parser.parse_args(argv)) -class Runner(object): +class Runner(): """Runner class""" def __init__(self): diff --git a/xtesting/ci/tier_builder.py b/xtesting/ci/tier_builder.py index b0050b13..27afc7d1 100644 --- a/xtesting/ci/tier_builder.py +++ b/xtesting/ci/tier_builder.py @@ -16,7 +16,7 @@ from xtesting.ci import tier_handler from xtesting.utils import env -class TierBuilder(object): +class TierBuilder(): # pylint: disable=missing-docstring def __init__(self, testcases_file): diff --git a/xtesting/ci/tier_handler.py b/xtesting/ci/tier_handler.py index 4b74e37c..8359d91c 100644 --- a/xtesting/ci/tier_handler.py +++ b/xtesting/ci/tier_handler.py @@ -34,7 +34,7 @@ def split_text(text, max_len): return lines -class Tier(object): +class Tier(): def __init__(self, name, order, description=""): self.tests_array = [] @@ -96,7 +96,7 @@ class Tier(object): return msg.get_string() -class TestCase(object): +class TestCase(): def __init__(self, name, enabled, skipped, criteria, blocking, description="", project=""): -- cgit 1.2.3-korg