1. Pypy
  2. Untitled project
  3. pypy

Commits

Alex Gaynor  committed 9087fe2

Fixed _ffi tests with -A

  • Participants
  • Parent commits 2bef841
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/_ffi/test/test_struct.py

View file
             array = ptr_array[0]
             lst = [array[i] for i in range(length)]
             return space.wrap(lst)
-        cls.w_read_raw_mem = cls.space.wrap(interp2app(read_raw_mem))
+        if cls.runappdirect:
+            cls.w_read_raw_mem = lambda self, addr, typename, length: read_raw_mem(cls.space, addr, typename, length)
+        else:
+            cls.w_read_raw_mem = cls.space.wrap(interp2app(read_raw_mem))
         #
         from pypy.rlib import clibffi
         from pypy.rlib.rarithmetic import r_uint