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

STINNER Victor report at bugs.python.org
Tue May 18 13:42:22 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

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

On Unix, _testembed gets the symbol since it's used. Currently, hasattr(ctypes.pythonapi, 'Py_FrozenMain') returns false if Python is built without --enable-shared, even if _testembed is able to get Py_FrozenMain().

I hope that bpo-44133 will be solved soon.

----------

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


More information about the Python-bugs-list mailing list