From 7cdf043367467be72c4001fa8471f4ebe873ad33 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 26 Sep 2004 00:51:19 +0000 Subject: [PATCH] fix ptr test to work with COBJECTs git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6263 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/python/lib_std_vector_runme.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SWIG/Examples/test-suite/python/lib_std_vector_runme.py b/SWIG/Examples/test-suite/python/lib_std_vector_runme.py index 4f810579f..be0e77901 100644 --- a/SWIG/Examples/test-suite/python/lib_std_vector_runme.py +++ b/SWIG/Examples/test-suite/python/lib_std_vector_runme.py @@ -42,9 +42,11 @@ if va[3].f(1) != 8: ip = PtrInt() ap = new_ArrInt(10) -vi = IntPtrVector((ip,ap,None)) +ArrInt_setitem(ip,0,123) +ArrInt_setitem(ap,2,123) -if vi[1] != ap: +vi = IntPtrVector((ip,ap,None)) +if ArrInt_getitem(vi[0],0) != ArrInt_getitem(vi[1],2): raise RuntimeError,"bad std::vector mapping"