hgdemandimport/__init__.py
changeset 49279 127d33e63d1a
parent 48947 425585f057e0
parent 49272 fda7ec505dc5
child 50728 80c8dcfb73c6
--- a/hgdemandimport/__init__.py	Thu Jun 02 23:57:56 2022 +0200
+++ b/hgdemandimport/__init__.py	Wed Jun 08 15:46:04 2022 +0200
@@ -62,6 +62,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)