Summary: | =dev-python/cffi-1.9.1 stabilization request | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dirkjan Ochtman (RETIRED) <djc> |
Component: | Stabilization | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | mgorny |
Priority: | Normal | Keywords: | STABLEREQ |
Version: | unspecified | Flags: | stable-bot:
sanity-check+
|
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: |
=dev-python/cffi-1.9.1
|
Runtime testing required: | --- |
Description
Dirkjan Ochtman (RETIRED)
![]() amd64 stable x86 stable ppc stable sparc stable Stable for HPPA. ia64 stable ppc64 stable Stable on alpha. arm stable I see one test failure w/ arm64
=================================== FAILURES ===================================
_________________________ TestFFI.test_struct_by_value _________________________
self = <testing.cffi0.test_ffi_backend.TestFFI object at 0x7f81efd390>
def test_struct_by_value(self):
if self.module is None:
py.test.skip("fix the auto-generation of the tiny test lib")
ffi = FFI(backend=self.Backend())
ffi.cdef("""
typedef struct {
long x;
long y;
} POINT;
typedef struct {
long left;
long top;
long right;
long bottom;
} RECT;
long left, top, right, bottom;
RECT ReturnRect(int i, RECT ar, RECT* br, POINT cp, RECT dr,
RECT *er, POINT fp, RECT gr);
""")
ownlib = ffi.dlopen(self.module)
rect = ffi.new('RECT[1]')
pt = ffi.new('POINT[1]')
pt[0].x = 15
pt[0].y = 25
rect[0].left = ownlib.left
rect[0].right = ownlib.right
rect[0].top = ownlib.top
rect[0].bottom = ownlib.bottom
for i in range(4):
ret = ownlib.ReturnRect(i, rect[0], rect, pt[0], rect[0],
rect, pt[0], rect[0])
> assert ret.left == ownlib.left
E assert -200 == 10
E + where -200 = <cdata 'RECT' owning 32 bytes>.left
E + and 10 = <cffi.api.FFILibrary_/var/tmp/portage/dev-python/cffi-1.9.1/temp/ffi-0/testownlib.so object at 0x7f81efdb10>.left
testing/cffi0/test_ownlib.py:281: AssertionError
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!
============== 1 failed, 486 passed, 29 skipped in 64.85 seconds ===============
s390 done with newer version This version is being removed. |