Author: Matti Picus <matti.pi...@gmail.com> Branch: Changeset: r94781:2ae825a19da0 Date: 2018-06-25 21:42 -0700 http://bitbucket.org/pypy/pypy/changeset/2ae825a19da0/
Log: fix tests diff --git a/pypy/module/cpyext/test/test_unicodeobject.py b/pypy/module/cpyext/test/test_unicodeobject.py --- a/pypy/module/cpyext/test/test_unicodeobject.py +++ b/pypy/module/cpyext/test/test_unicodeobject.py @@ -4,7 +4,7 @@ from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase from pypy.module.cpyext.unicodeobject import ( Py_UNICODE, PyUnicodeObject, new_empty_unicode) -from pypy.module.cpyext.api import PyObjectP, PyObject +from pypy.module.cpyext.api import PyObjectP, PyObject, INTP_real from pypy.module.cpyext.pyobject import decref, from_ref from rpython.rtyper.lltypesystem import rffi, lltype import sys, py @@ -464,8 +464,8 @@ value = 1 else: value = 0 - pendian = lltype.malloc(rffi.INTP.TO, 1, flavor='raw') - pendian[0] = rffi.cast(rffi.INT, value) + pendian = lltype.malloc(INTP_real.TO, 1, flavor='raw') + pendian[0] = rffi.cast(rffi.INT_real, value) else: pendian = None @@ -477,7 +477,7 @@ rffi.free_charp(strict_charp) if pendian: if realendian is not None: - assert rffi.cast(rffi.INT, realendian) == pendian[0] + assert rffi.cast(rffi.INT_real, realendian) == pendian[0] lltype.free(pendian, flavor='raw') test("\x61\x00\x62\x00\x63\x00\x64\x00", -1) @@ -500,8 +500,8 @@ value = 1 else: value = 0 - pendian = lltype.malloc(rffi.INTP.TO, 1, flavor='raw') - pendian[0] = rffi.cast(rffi.INT, value) + pendian = lltype.malloc(INTP_real.TO, 1, flavor='raw') + pendian[0] = rffi.cast(rffi.INT_real, value) else: pendian = None _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit