# HG changeset patch # User Manuel Jacob # Date 2022-06-02 00:05:11 # Node ID fda7ec505dc5e2b47e0dda11c8488b312750868b # Parent a31245a984f2b9b029d00ddffdc88510cdecbd57 demandimport: eagerly load msvcrt module on PyPy diff --git a/hgdemandimport/__init__.py b/hgdemandimport/__init__.py --- a/hgdemandimport/__init__.py +++ b/hgdemandimport/__init__.py @@ -66,6 +66,9 @@ IGNORES = { if _pypy: # _ctypes.pointer is shadowed by "from ... import pointer" (PyPy 5) IGNORES.add('_ctypes.pointer') + # pure Python module on PyPy, must be loaded to raise ModuleNotFoundError + # on non-Windows platforms + IGNORES.add('msvcrt') demandimport.init(IGNORES)