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:
parent
5ce6221efa
commit
cd7dac40f7
3 changed files with 10 additions and 5 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue