Debian Codegraph @

extra_tests/cffi_tests/conftest.py

raw symbols SCIP
1 # Generated by pypy/tool/import_cffi.py
2 import pytest
3 import sys
4
5 from ctypes import util
6
7 # this problem was supposedly fixed in a newer Python 3.8 release, but after binary installer support expired
8 # https://github.com/python/cpython/pull/28054
9 if sys.platform == 'darwin' and sys.version_info[:2] == (3, 8):
10 orig_find_library = util.find_library
11
12 def hacked_find_library(*args, **kwargs):
13 res = orig_find_library(*args, **kwargs)
14
15 if res is None:
16 pytest.xfail("busted find_library on MacOS Python 3.8")
17
18 return res
19
20 util.find_library = hacked_find_library