aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-04-16 22:53:32 +0200
committerArmin Rigo <arigo@tunes.org>2020-04-16 22:53:32 +0200
commit7404ceefabd2a017ccffb0b924be93b83a579a84 (patch)
tree01927b56aa1c4053838b9f8f342548ce96914344 /extra_tests
parentupdate old stuff in the FAQ (diff)
downloadpypy-7404ceefabd2a017ccffb0b924be93b83a579a84.tar.gz
pypy-7404ceefabd2a017ccffb0b924be93b83a579a84.tar.bz2
pypy-7404ceefabd2a017ccffb0b924be93b83a579a84.zip
update to cffi/4a4a9e8abe97
Diffstat (limited to 'extra_tests')
-rw-r--r--extra_tests/cffi_tests/cffi0/backend_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra_tests/cffi_tests/cffi0/backend_tests.py b/extra_tests/cffi_tests/cffi0/backend_tests.py
index cafc3a755f..dda802a035 100644
--- a/extra_tests/cffi_tests/cffi0/backend_tests.py
+++ b/extra_tests/cffi_tests/cffi0/backend_tests.py
@@ -2,7 +2,7 @@
import py
import pytest
import platform
-import sys, ctypes
+import sys, ctypes, ctypes.util
from cffi import FFI, CDefError, FFIError, VerificationMissing
from extra_tests.cffi_tests.support import *
@@ -13,8 +13,8 @@ SIZE_OF_PTR = ctypes.sizeof(ctypes.c_void_p)
SIZE_OF_WCHAR = ctypes.sizeof(ctypes.c_wchar)
def needs_dlopen_none():
- if sys.platform == 'win32' and sys.version_info >= (3,):
- py.test.skip("dlopen(None) cannot work on Windows for Python 3")
+ if sys.platform == 'win32' and not ctypes.util.find_library('c'):
+ py.test.skip("dlopen(None) cannot work on Windows with this runtime")
class BackendTests: