[pypy-svn] r73274 - in pypy/branch/cpython-extension/pypy/module/cpyext: . test

fijal at codespeak.net fijal at codespeak.net
Fri Apr 2 02:57:14 CEST 2010


Author: fijal
Date: Fri Apr  2 02:57:12 2010
New Revision: 73274

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py
   pypy/branch/cpython-extension/pypy/module/cpyext/test/test_getargs.py
Log:
This should be enough to make this test pass


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py	Fri Apr  2 02:57:12 2010
@@ -17,8 +17,7 @@
         if c == "\x00":
             return 0
         if c == "i":
-            #pyobj = api.va_get_int_star(va_list_p)
-            # XXX processs....
-            pass
+            arr = api.va_get_int_star(va_list_p)
+            arr[0] = space.int_w(space.getitem(w_obj, space.wrap(i)))
         i += 1
     return 0

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/test/test_getargs.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/test/test_getargs.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/test/test_getargs.py	Fri Apr  2 02:57:12 2010
@@ -14,4 +14,4 @@
              return PyInt_FromLong(l);
              '''
              )])
-        mod.oneargint(1)
+        assert mod.oneargint(1) == 1



More information about the Pypy-commit mailing list