From: Marcelo M. <mar...@us...> - 2005-11-08 16:04:01
|
Update of /cvsroot/swig/SWIG/Examples/test-suite/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10646/python Modified Files: director_basic_runme.py Log Message: adding more cases Index: director_basic_runme.py =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/test-suite/python/director_basic_runme.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** director_basic_runme.py 7 Nov 2005 12:40:16 -0000 1.4 --- director_basic_runme.py 8 Nov 2005 16:03:54 -0000 1.5 *************** *** 30,33 **** --- 30,37 ---- class PyClass(director_basic.MyClass): + def method(self, vptr): + self.cmethod = 7 + pass + def vmethod(self, b): b.x += 31 *************** *** 45,48 **** --- 49,56 ---- bd = dd.cmethod(b) + cc.method(b) + if c.cmethod != 7: + raise RuntimeError + if bc.x != 34: raise RuntimeError |