aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qobject_property_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/qobject_property_test.py')
-rw-r--r--tests/QtCore/qobject_property_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/QtCore/qobject_property_test.py b/tests/QtCore/qobject_property_test.py
index 1d8a16c9a..fcf8e8978 100644
--- a/tests/QtCore/qobject_property_test.py
+++ b/tests/QtCore/qobject_property_test.py
@@ -129,6 +129,13 @@ class PropertyWithConstructorCase(unittest.TestCase):
obj = ExQObject(registeredproperty=123)
self.assertEqual(obj.registeredproperty, 123)
+ def testPythonDeclaredPropertyNoSetted(self):
+ try:
+ obj = ExQObject()
+ a = obj.registeredproperty
+ except AttributeError:
+ pass
+
def testConstructorPropertyInQObjectDerived(self):
#QTimer(property=value) for existing C++ property
obj = QTimer(objectName='dummy')