diff options
author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-12-13 15:50:27 +0100 |
---|---|---|
committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-12-18 10:08:10 +0100 |
commit | 382a34586f73896d12063616eb8b31474c03f68a (patch) | |
tree | c33f9c01713fe2083351beade9d9536527712814 /testing | |
parent | 03a3e61b0cce28c44b68b032cff2e6b8fa869477 (diff) |
Remove unnecessary use of 'object' in class constructionremoteobjectsdev
Considering we are not compatible with Python 2 anymore,
we can drop the 'object' explicit inheritance in the class
declaration.
Pick-to: 6.8
Change-Id: Iac3a95aa9721c3ff1a755f457c0936ca157a8470
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/blacklist.py | 2 | ||||
-rw-r--r-- | testing/buildlog.py | 2 | ||||
-rw-r--r-- | testing/parser.py | 2 | ||||
-rw-r--r-- | testing/runner.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/testing/blacklist.py b/testing/blacklist.py index 513b511c5..68a00e8f3 100644 --- a/testing/blacklist.py +++ b/testing/blacklist.py @@ -16,7 +16,7 @@ from .buildlog import builds from .helper import decorate -class BlackList(object): +class BlackList: def __init__(self, blname): if not blname: f = StringIO() diff --git a/testing/buildlog.py b/testing/buildlog.py index 7bff6a201..90ff436d8 100644 --- a/testing/buildlog.py +++ b/testing/buildlog.py @@ -23,7 +23,7 @@ LogEntry = namedtuple("LogEntry", ["log_dir", "build_dir", "build_classifiers"]) is_ci = os.environ.get("QTEST_ENVIRONMENT", "") == "ci" -class BuildLog(object): +class BuildLog: """ This class is a convenience wrapper around a list of log entries. diff --git a/testing/parser.py b/testing/parser.py index cc889021c..abf00ef3f 100644 --- a/testing/parser.py +++ b/testing/parser.py @@ -121,7 +121,7 @@ def _parse_tests(test_log): return result -class TestParser(object): +class TestParser: def __init__(self, test_log): self._results = _parse_tests(test_log) diff --git a/testing/runner.py b/testing/runner.py index 198f760ce..ad1e01d65 100644 --- a/testing/runner.py +++ b/testing/runner.py @@ -23,7 +23,7 @@ sys.path.append(build_scripts_dir) from build_scripts.utils import detect_clang -class TestRunner(object): +class TestRunner: def __init__(self, log_entry, project, index): self.log_entry = log_entry built_path = log_entry.build_dir |