Author: Ronan Lamy <[email protected]>
Branch: rffi-parser
Changeset: r89140:849d88015265
Date: 2016-12-18 13:44 +0000
http://bitbucket.org/pypy/pypy/changeset/849d88015265/
Log: Update test
diff --git a/pypy/module/cpyext/test/test_api.py
b/pypy/module/cpyext/test/test_api.py
--- a/pypy/module/cpyext/test/test_api.py
+++ b/pypy/module/cpyext/test/test_api.py
@@ -90,9 +90,9 @@
from rpython.translator.c.database import LowLevelDatabase
db = LowLevelDatabase()
assert (api.c_function_signature(db,
api.FUNCTIONS['PyPy_TypedefTest1'])
- == ('Py_ssize_t', 'Py_ssize_t arg0'))
+ == ('Signed', 'Signed arg0'))
assert (api.c_function_signature(db,
api.FUNCTIONS['PyPy_TypedefTest2'])
- == ('Py_ssize_t *', 'Py_ssize_t *arg0'))
+ == ('Signed *', 'Signed *arg0'))
PyPy_TypedefTest1(space, 0)
ppos = lltype.malloc(api.Py_ssize_tP.TO, 1, flavor='raw')
@@ -100,7 +100,7 @@
PyPy_TypedefTest2(space, ppos)
lltype.free(ppos, flavor='raw')
[email protected](os.environ.get('USER')=='root',
[email protected](os.environ.get('USER')=='root',
reason='root can write to all files')
def test_copy_header_files(tmpdir):
api.copy_header_files(tmpdir, True)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit