Author: Matti Picus <matti.pi...@gmail.com> Branch: Changeset: r84315:392dd419f5d0 Date: 2016-05-09 03:19 +0000 http://bitbucket.org/pypy/pypy/changeset/392dd419f5d0/
Log: fix tests for 32 bit and running as root in chroot tests still fail since rffi.INTPTR_T is ending up as a 'Signed' in the ptr-to-function signature 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 @@ -1,4 +1,4 @@ -import py +import py, pytest from rpython.rtyper.lltypesystem import rffi, lltype from pypy.interpreter.baseobjspace import W_Root from pypy.module.cpyext.state import State @@ -100,7 +100,8 @@ PyPy_TypedefTest2(space, ppos) lltype.free(ppos, flavor='raw') - +@pytest.mark.skipif(os.environ.get('USER')=='root', + reason='root can write to all files') def test_copy_header_files(tmpdir): api.copy_header_files(tmpdir, True) def check(name): diff --git a/pypy/module/cpyext/test/test_bytesobject.py b/pypy/module/cpyext/test/test_bytesobject.py --- a/pypy/module/cpyext/test/test_bytesobject.py +++ b/pypy/module/cpyext/test/test_bytesobject.py @@ -40,7 +40,7 @@ #endif if(s->ob_type->tp_basicsize != expected_size) { - printf("tp_basicsize==%ld\\n", s->ob_type->tp_basicsize); + printf("tp_basicsize==%zd\\n", s->ob_type->tp_basicsize); result = 0; } Py_DECREF(s); diff --git a/pypy/module/micronumpy/ufuncs.py b/pypy/module/micronumpy/ufuncs.py --- a/pypy/module/micronumpy/ufuncs.py +++ b/pypy/module/micronumpy/ufuncs.py @@ -1521,7 +1521,7 @@ # Instantiated in cpyext/ndarrayobject. It is here since ufunc calls # set_dims_and_steps, otherwise ufunc, ndarrayobject would have circular # imports -npy_intpp = rffi.LONGP +npy_intpp = rffi.INTPTR_T LONG_SIZE = LONG_BIT / 8 CCHARP_SIZE = _get_bitsize('P') / 8 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit