New submission from STINNER Victor <vstin...@python.org>:
I would like to change Py_FrozenMain() using the new PyConfig C API, but I would prefer to first write tests of its current behavior. Currently, Py_FrozenMain() has no test. Py_FrozenMain() is used by Tools/freeze/freeze.py. Old freeze.py issues: * bpo-42613: freeze.py doesn't support sys.platlibdir different than lib nor multiarch * bpo-40954: freeze.py aborts on macOS * bpo-32217: freeze.py fails to work. * bpo-27727: Update Tools/freeze to use .vcxproj files * bpo-27566: Tools/freeze/winmakemakefile.py clean target should use 'del' instead of 'rm' * bpo-26271: freeze.py makefile uses the wrong flags variables * bpo-25504: undefined name 'modules' in Tools/freeze/checkextensions_win32.py * bpo-24871: freeze.py doesn't work on x86_64 Linux out of the box * bpo-23405: Tools/freeze "make" gets missing file error with unix shared builds * bpo-21502: freeze.py not working properly with OS X framework builds * bpo-16047: Tools/freeze no longer works in Python 3 * bpo-11824: freeze.py broken due to ABI flags * bpo-7517: freeze.py not ported to python3 * bpo-6078: freeze.py doesn't work * bpo-1985: Bug/Patch: Problem with xml/__init__.py when using freeze.py * bpo-588452: $DEBUG_PYTHON -O freeze.py broken I never used freeze.py, but since we get bug reports, it seems like it's used by users :-) Note: freeze.py has no test neither. Py_FrozenMain() has been modified recently in bpo-44113: commit 7565586724692e2ad164d770af9675f7a261fe3a Author: Dong-hee Na <donghee...@python.org> Date: Thu May 13 10:19:46 2021 +0900 bpo-44113: Update fromzenmain not to use Py_SetProgramName (GH-26085) See also: [capi-sig] Py_FrozenMain and the stable ABI https://mail.python.org/archives/list/capi-...@python.org/thread/5QLI3NUP3OSGLCCIBAQOTX4GEJQBWJ6F/ See also: [Python-Dev] What's the story on Py_FrozenMain? https://mail.python.org/pipermail/python-dev/2013-November/130280.html ---------- components: C API messages: 393643 nosy: corona10, petr.viktorin, vstinner priority: normal severity: normal status: open title: [C API] Add tests on Py_FrozenMain() versions: Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44131> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com