aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qobject_property_test.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-15 10:40:52 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-15 10:54:56 -0300
commitcd7dac40f758f821514693c6d7d4c449a9f81240 (patch)
treebdb4ce55c996e45c1415fc0b678addf8291dccd3 /tests/QtCore/qobject_property_test.py
parent5ce6221efae57de30c04f1069d294f4e6275bf85 (diff)
Don't ignore exceptions caused by property getters and setters.
The exception is ignored only if the call was a meta call.
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')