This repository was archived by the owner on Jan 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22import py
33import pytest
44import platform
5- import sys , ctypes
5+ import sys , ctypes , ctypes . util
66from cffi import FFI , CDefError , FFIError , VerificationMissing
77from extra_tests .cffi_tests .support import *
88
1313SIZE_OF_WCHAR = ctypes .sizeof (ctypes .c_wchar )
1414
1515def needs_dlopen_none ():
16- if sys .platform == 'win32' and sys . version_info >= ( 3 , ):
17- py .test .skip ("dlopen(None) cannot work on Windows for Python 3 " )
16+ if sys .platform == 'win32' and not ctypes . util . find_library ( 'c' ):
17+ py .test .skip ("dlopen(None) cannot work on Windows with this runtime " )
1818
1919
2020class BackendTests :
Original file line number Diff line number Diff line change @@ -361,11 +361,11 @@ PyMODINIT_FUNC _CFFI_PYTHON_STARTUP_FUNC(const void *[]); /* forward */
361361
362362static struct _cffi_pypy_init_s {
363363 const char * name ;
364- void ( * func )( const void * []);
364+ void * func ; /* function pointer */
365365 const char * code ;
366366} _cffi_pypy_init = {
367367 _CFFI_MODULE_NAME ,
368- ( void ( * )( const void * [])) _CFFI_PYTHON_STARTUP_FUNC ,
368+ _CFFI_PYTHON_STARTUP_FUNC ,
369369 _CFFI_PYTHON_STARTUP_CODE ,
370370};
371371
You can’t perform that action at this time.
0 commit comments