From cd7dac40f758f821514693c6d7d4c449a9f81240 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Wed, 15 Sep 2010 10:40:52 -0300 Subject: Don't ignore exceptions caused by property getters and setters. The exception is ignored only if the call was a meta call. --- tests/QtCore/qobject_property_test.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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') -- cgit v1.2.3