[issue44131] [C API] Add tests on Py_FrozenMain()

Petr Viktorin report at bugs.python.org
Tue May 18 05:04:55 EDT 2021


Petr Viktorin <encukou at gmail.com> added the comment:

The tests are now skipped on Windows. It might be better to use a feature check: hasattr(ctypes.pythonapi, 'Py_FrozenMain')


IMO, Py_FrozenMain is quite specific: it's OK if it's exported, but also OK if it's missing. (Unless you're compiling a special build with frozen modules, which won't work at all without Py_FrozenMain.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44131>
_______________________________________


More information about the Python-bugs-list mailing list