diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-04-01 07:24:20 +0300 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2020-04-01 07:24:20 +0300 |
commit | e9ab2af8126f2eaa27990ec8d2e80fe97d118c92 (patch) | |
tree | c1cd6286b5bb153353c00fd28fee26aa4182eb2e /testing | |
parent | 3d7cdd07ac7b93e983f865325acfb7ea23851c38 (diff) | |
download | cffi-e9ab2af8126f2eaa27990ec8d2e80fe97d118c92.tar.gz |
support python2 builds with msvc>13
Diffstat (limited to 'testing')
-rw-r--r-- | testing/cffi0/backend_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/cffi0/backend_tests.py b/testing/cffi0/backend_tests.py index 063e9f2..e0567e0 100644 --- a/testing/cffi0/backend_tests.py +++ b/testing/cffi0/backend_tests.py @@ -12,8 +12,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: |