fix bug when overriding a property with bare value

the bare value must be converted to a updated property.
add also a test for this

Change-Id: I261daaaa8e12d7f739d8b2e8389c1b871b26c5b3
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/34985
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
This commit is contained in:
2024-11-19 08:55:46 +01:00
parent 142add9109
commit e8cd193d0d
2 changed files with 3 additions and 0 deletions

View File

@ -148,6 +148,8 @@ def test_Property_override():
o2 = co()
assert o1.a == 1
assert o2.a == 3
o2.setProperty('a', 4)
assert o2.a == 4
with pytest.raises(ProgrammingError) as e:
class cx(c): # pylint: disable=unused-variable