[pypy-commit] pypy reflex-support: test fixes

wlav noreply at buildbot.pypy.org
Thu Jun 30 01:25:12 CEST 2011


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r45188:06202ffd1864
Date: 2011-06-27 17:54 -0700
http://bitbucket.org/pypy/pypy/changeset/06202ffd1864/

Log:	test fixes

diff --git a/pypy/module/cppyy/test/example01.cxx b/pypy/module/cppyy/test/example01.cxx
--- a/pypy/module/cppyy/test/example01.cxx
+++ b/pypy/module/cppyy/test/example01.cxx
@@ -48,7 +48,7 @@
     return ::atoi(str);
 }
 char* example01::staticStrcpy(const char* strin) {
-    char* strout = (char*)malloc(::strlen(strin + 1));
+    char* strout = (char*)malloc(::strlen(strin)+1);
     ::strcpy(strout, strin);
     return strout;
 }
diff --git a/pypy/module/cppyy/test/test_stltypes.py b/pypy/module/cppyy/test/test_stltypes.py
--- a/pypy/module/cppyy/test/test_stltypes.py
+++ b/pypy/module/cppyy/test/test_stltypes.py
@@ -25,7 +25,7 @@
             return cppyy.load_lib(%r)""" % (shared_lib, ))
 
     def test1BuiltinTypeVectorType( self ):
-        """Test access to a vector<int>"""
+        """Test access to an std::vector<int>"""
 
         import cppyy
 
@@ -39,6 +39,7 @@
 
         assert tv1 is tv2
 
+        #-----
         v = tv1()
         for i in range(self.N):
             v.push_back(i)


More information about the pypy-commit mailing list