aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/tools/pyside6-deploy/test_pyside6_deploy.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2023-10-14 11:37:51 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-10-16 12:31:04 +0000
commitd90348de1e59a7e19085b29ed7af4c6266f1625c (patch)
tree73ad69c471d4a60a038a870d7b6f00dc8cc70957 /sources/pyside6/tests/tools/pyside6-deploy/test_pyside6_deploy.py
parent0649923ad351f434dd9689e7ebd49e82b47b47dc (diff)
Support running PySide on Python 3.12, cleanupv6.6.0
In the course of fixing 3.12 issues, a 3.11 fix for PyEnum was missing that created a 3.11 error. A bug with deployment was fixed but not reflected in the tests. This was only visible for pyenv users. Also fixes a minor cosmetic bug introduced by "Python 3.12: Fix the structure of class property" Task-number: PYSIDE-2230 Change-Id: I3a6bd6426e23168dfccdda17b408f193aacd28a0 Pick-to: 6.5 6.2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 29967cb08e6dfd19b0e49013d3b936f9fd18c6a2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6/tests/tools/pyside6-deploy/test_pyside6_deploy.py')
-rw-r--r--sources/pyside6/tests/tools/pyside6-deploy/test_pyside6_deploy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside6/tests/tools/pyside6-deploy/test_pyside6_deploy.py b/sources/pyside6/tests/tools/pyside6-deploy/test_pyside6_deploy.py
index 26b9d8467..3a54e2b88 100644
--- a/sources/pyside6/tests/tools/pyside6-deploy/test_pyside6_deploy.py
+++ b/sources/pyside6/tests/tools/pyside6-deploy/test_pyside6_deploy.py
@@ -26,6 +26,10 @@ class ConfigFile:
class TestPySide6Deploy(unittest.TestCase):
@classmethod
def setUpClass(cls):
+ # PYSIDE-2230: A temporary patch that avoids the pyenv error.
+ # The final solution is too much for this quick fix.
+ if os.environ.get("PYENV_ROOT"):
+ del os.environ["PYENV_ROOT"]
cls.pyside_root = Path(__file__).parents[5].resolve()
example_root = cls.pyside_root / "examples"
example_widgets = example_root / "widgets" / "widgets" / "tetrix"