From bc7b78427aca32893cb42c2e84f587dca605c532 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Sun, 29 Oct 2023 18:25:42 +0100 Subject: testing: Improve the Python version info to get better control The QML bug that was identified by "bug_825" revealed a Python error which is persistent in Python 3.8 and was fixed in Python 3.9.12 and Python 3.10.4 . It was not possible to write a work-around without re-implementing large areas of the Python type system. We interrogate the TestRunner to obtain the full Python version. Otherwise we would have to exclude Python 3.8 to 3.10 completely. Task-number: PYSIDE-2230 Change-Id: Ica53c2e7b44cbbf5ec8ca1430ab65e6743beeff8 Pick-to: 6.6 Reviewed-by: Friedemann Kleint --- testing/command.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testing/command.py') diff --git a/testing/command.py b/testing/command.py index c73f269fd..31a48f87c 100644 --- a/testing/command.py +++ b/testing/command.py @@ -79,6 +79,8 @@ def test_project(project, args, blacklist, runs): for idx in range(runs): index = idx + 1 runner = TestRunner(builds.selected, project, index) + # For the full Python version we need to ask the TestRunner. + builds.set_python_version(runner.get_python_version()) print() print(f"********* Start testing of {project} *********") print("Config: Using", " ".join(builds.classifiers)) -- cgit v1.2.3