From: Marcelo M. <mar...@us...> - 2005-10-26 14:12:19
|
Update of /cvsroot/swig/SWIG/Examples/test-suite/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28629/python Modified Files: director_nested_runme.py Log Message: add another nested case Index: director_nested_runme.py =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/test-suite/python/director_nested_runme.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** director_nested_runme.py 5 Dec 2003 01:59:27 -0000 1.1 --- director_nested_runme.py 26 Oct 2005 14:12:11 -0000 1.2 *************** *** 25,29 **** def get_value(self): ! return "B::get_value" pass --- 25,29 ---- def get_value(self): ! return 1 pass *************** *** 35,36 **** --- 35,61 ---- raise RuntimeError,"Bad B virtual resolution" + + + class C(FooBar_int): + def do_advance(self): + return "C::do_advance;" + FooBar_int.do_advance(self) + + def do_step(self): + return "C::do_step;" + + def get_value(self): + return 2 + + def get_name(self): + return FooBar_int.get_name(self) + " hello" + + + pass + + cc = C() + + c = C.get_self(cc) + c.advance() + if c.get_name() != "FooBar::get_name hello": + raise RuntimeError + |