mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
demandimport: add '_ctypes.pointer' to ignore list on PyPy
The pointer module is shadowed by a subsequent import. Our demand importer can't handle this because both sub modules and attributes live in the same namespace. https://bitbucket.org/pypy/pypy/src/release-5.0.1/lib_pypy/_ctypes/__init__.py#__init__.py-5
This commit is contained in:
parent
9edbb61202
commit
fa872505e9
@ -287,6 +287,12 @@ ignore = [
|
||||
'distutils.msvc9compiler',
|
||||
]
|
||||
|
||||
if _pypy:
|
||||
ignore.extend([
|
||||
# _ctypes.pointer is shadowed by "from ... import pointer" (PyPy 5)
|
||||
'_ctypes.pointer',
|
||||
])
|
||||
|
||||
def isenabled():
|
||||
return builtins.__import__ == _demandimport
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user