aboutsummaryrefslogtreecommitdiffstats
path: root/testing/command.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2023-10-29 18:25:42 +0100
committerChristian Tismer <tismer@stackless.com>2023-12-07 15:17:37 +0100
commitbc7b78427aca32893cb42c2e84f587dca605c532 (patch)
tree0bf3d99d0fe7f3a52ccb4ecbb7d668a2847347fe /testing/command.py
parentfa45234cc20ad514e89e7124e2aee9a6347ea474 (diff)
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 <Friedemann.Kleint@qt.io>
Diffstat (limited to 'testing/command.py')
-rw-r--r--testing/command.py2
1 files changed, 2 insertions, 0 deletions
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))