Mercurial > hg-stable
changeset 48885:fda7ec505dc5 stable
demandimport: eagerly load msvcrt module on PyPy
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Thu, 02 Jun 2022 02:05:11 +0200 |
parents | a31245a984f2 |
children | b5fe10b3c9f5 |
files | hgdemandimport/__init__.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgdemandimport/__init__.py Wed Jun 01 03:08:15 2022 +0200 +++ b/hgdemandimport/__init__.py Thu Jun 02 02:05:11 2022 +0200 @@ -66,6 +66,9 @@ 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)