aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-05-01 14:47:05 +0200
committerChristian Tismer <tismer@stackless.com>2021-05-03 09:31:02 +0200
commit39ba36db0fb8a3c722cb23e02f38abab9c67592c (patch)
tree031b852de76e723a62e21a8018fcd96775c56b31 /sources/pyside6/tests
parent9dc33d2aa2809efe5548896568907eada85eb3c5 (diff)
__feature__: Ensure that features are not affected by other imports
Imports should not touch the feature dict unless they are feature imports. This was a small error in the import logic. Change-Id: I16045fffb4b770861ff2efba674667894e0798e5 Fixes: PYSIDE-1548 Pick-to: 5.15 Pick-to: 6.0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/tests')
-rw-r--r--sources/pyside6/tests/QtCore/snake_prop_feature_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/snake_prop_feature_test.py b/sources/pyside6/tests/QtCore/snake_prop_feature_test.py
index 6bfcddec0..7925c4c0c 100644
--- a/sources/pyside6/tests/QtCore/snake_prop_feature_test.py
+++ b/sources/pyside6/tests/QtCore/snake_prop_feature_test.py
@@ -91,6 +91,8 @@ class FeatureTest(unittest.TestCase):
window.modal
from __feature__ import snake_case, true_property
+ #PYSIDE-1548: Make sure that another import does not clear the features.
+ import sys
self.assertTrue(isinstance(QWidget.modal, property))
self.assertTrue(isinstance(window.modal, bool))