From f32a20fc2f043abdfa54ca2dda5cb67d5c545303 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 12 Feb 2022 12:17:43 +0000 Subject: [PATCH] Enhance Python director_property test --- Examples/test-suite/python/director_property_runme.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Examples/test-suite/python/director_property_runme.py b/Examples/test-suite/python/director_property_runme.py index 5d713c27f..dbbe23cb6 100644 --- a/Examples/test-suite/python/director_property_runme.py +++ b/Examples/test-suite/python/director_property_runme.py @@ -14,6 +14,12 @@ foo.setA("BLABLA") if foo.getA() != "BLABLA": raise RuntimeError +# test property addition in PyFoo +if foo.a != "BLABLA": + raise RuntimeError + foo.a = "BIBI" if foo.a != "BIBI": raise RuntimeError +if foo.getA() != "BIBI": + raise RuntimeError