[pypy-svn] r73278 - in pypy/branch/cpython-extension/pypy/module/cpyext: . test
fijal at codespeak.net
fijal at codespeak.net
Fri Apr 2 03:12:25 CEST 2010
Author: fijal
Date: Fri Apr 2 03:12:23 2010
New Revision: 73278
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py
pypy/branch/cpython-extension/pypy/module/cpyext/test/test_getargs.py
Log:
Pass a bit more tests
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 03:12:23 2010
@@ -8,6 +8,10 @@
def PyArg_Parse():
pass
+ at cpython_api_c()
+def PyArg_ParseTuple():
+ pass
+
@cpython_api([PyObject, rffi.CCHARP, VA_LIST_P, rffi.INT_real],
rffi.INT_real, error=0)
def pypy_vgetargs1(space, w_obj, fmt, va_list_p, lgt):
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 03:12:23 2010
@@ -15,3 +15,10 @@
'''
)])
assert mod.oneargint(1) == 1
+ raises(TypeError, mod.oneargint, None)
+ try:
+ mod.oneargint()
+ except IndexError:
+ pass
+ else:
+ raise Exception("DID NOT RAISE")
More information about the Pypy-commit
mailing list