Пример #1
0
 def setup_class(cls):
     space = gettestobjspace(usemodules=('_rawffi', 'struct'))
     cls.space = space
     cls.w_sizes_and_alignments = space.wrap(
         dict([(k, (v.c_size, v.c_alignment))
               for k, v in TYPEMAP.iteritems()]))
     Tracker.DO_TRACING = True
Пример #2
0
 def setup_class(cls):
     space = gettestobjspace(usemodules=('_rawffi', 'struct'))
     cls.space = space
     cls.w_lib_name = space.wrap(cls.prepare_c_example())
     cls.w_sizes_and_alignments = space.wrap(
         dict([(k, (v.c_size, v.c_alignment))
               for k, v in TYPEMAP.iteritems()]))
Пример #3
0
 def setup_class(cls):
     space = cls.space
     from rpython.rlib.clibffi import get_libc_name
     cls.w_lib_name = space.wrap(cls.prepare_c_example())
     cls.w_libc_name = space.wrap(get_libc_name())
     if sys.platform == 'win32':
         cls.w_iswin32 = space.wrap(True)
         cls.w_libm_name = space.wrap('msvcrt')
     else:
         cls.w_iswin32 = space.wrap(False)
         cls.w_libm_name = space.wrap('libm.so')
         if sys.platform == "darwin":
             cls.w_libm_name = space.wrap('libm.dylib')
     cls.w_platform = space.wrap(platform.name)
     cls.w_sizes_and_alignments = space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
     cls.w_float_typemap = space.wrap(TYPEMAP_FLOAT_LETTERS)
Пример #4
0
 def setup_class(cls):
     from pypy.rlib.clibffi import get_libc_name
     space = gettestobjspace(usemodules=('_rawffi', 'struct'))
     cls.space = space
     cls.w_lib_name = space.wrap(cls.prepare_c_example())
     cls.w_libc_name = space.wrap(get_libc_name())
     if sys.platform == 'win32':
         cls.w_iswin32 = space.wrap(True)
         cls.w_libm_name = space.wrap('msvcrt')
     else:
         cls.w_iswin32 = space.wrap(False)
         cls.w_libm_name = space.wrap('libm.so')
         if sys.platform == "darwin":
             cls.w_libm_name = space.wrap('libm.dylib')
     cls.w_platform = space.wrap(platform.name)
     cls.w_sizes_and_alignments = space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
Пример #5
0
 def setup_class(cls):
     space = cls.space
     from rpython.rlib.clibffi import get_libc_name
     cls.w_lib_name = space.wrap(cls.prepare_c_example())
     cls.w_libc_name = space.wrap(get_libc_name())
     if sys.platform == 'win32':
         cls.w_iswin32 = space.wrap(True)
         cls.w_libm_name = space.wrap('msvcrt')
     else:
         cls.w_iswin32 = space.wrap(False)
         cls.w_libm_name = space.wrap('libm.so')
         if sys.platform == "darwin":
             cls.w_libm_name = space.wrap('libm.dylib')
     cls.w_platform = space.wrap(platform.name)
     cls.w_sizes_and_alignments = space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
     cls.w_float_typemap = space.wrap(TYPEMAP_FLOAT_LETTERS)
Пример #6
0
    def setup_class(cls):
        from pypy.rlib.libffi import libc_name
        space = gettestobjspace(usemodules=('_rawffi', 'struct'))
        cls.space = space
        cls.w_lib_name = space.wrap(cls.prepare_c_example())
        cls.w_libc_name = space.wrap(libc_name)
        if sys.platform == 'win32':
            cls.w_iswin32 = space.wrap(True)
            cls.w_libm_name = space.wrap('msvcrt')
        else:
            cls.w_iswin32 = space.wrap(False)
            cls.w_libm_name = space.wrap('libm.so')
            if sys.platform == "darwin":
                cls.w_libm_name = space.wrap('libm.dylib')

        cls.w_sizes_and_alignments = space.wrap(
            dict([(k, (v.c_size, v.c_alignment))
                  for k, v in TYPEMAP.iteritems()]))
Пример #7
0
 def setup_class(cls):
     cls.w_sizes_and_alignments = cls.space.wrap(
         dict([(k, (v.c_size, v.c_alignment))
               for k, v in TYPEMAP.iteritems()]))
     Tracker.DO_TRACING = True
Пример #8
0
 def setup_class(cls):
     cls.w_sizes_and_alignments = cls.space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
     Tracker.DO_TRACING = True
Пример #9
0
 def setup_class(cls):
     space = gettestobjspace(usemodules=('_rawffi', 'struct'))
     cls.space = space
     cls.w_sizes_and_alignments = space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
     Tracker.DO_TRACING = True