Don't ignore exceptions caused by property getters and setters.

The exception is ignored only if the call was a meta call.
This commit is contained in:
Hugo Parente Lima 2010-09-15 10:40:52 -03:00
commit cd7dac40f7
3 changed files with 10 additions and 5 deletions

View file

@ -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')