diff --git a/SWIG/Examples/test-suite/python/director_string_runme.py b/SWIG/Examples/test-suite/python/director_string_runme.py index e3ef78114..d30cddbb7 100644 --- a/SWIG/Examples/test-suite/python/director_string_runme.py +++ b/SWIG/Examples/test-suite/python/director_string_runme.py @@ -4,9 +4,14 @@ class B(A): def __init__(self,string): A.__init__(self,string) + def get_first(self): + return A.get_first(self) + " world!" + b = B("hello") b.get(0) -b.get_first() +if b.get_first() != "hello world!": + print b.get_first() + raise RuntimeError