bpo-44131: Test Py_FrozenMain() #26126
Conversation
It seems wasteful to generate another frozen copy of importlib. There's already one in |
e4f7338
to
e368fa6
@encukou: "It seems wasteful to generate another frozen copy of importlib. There's already one in Python/importlib*.h; can that be used instead?" Right, I wrote the test differently to retrieve the two frozen importlib modules from PyImport_FrozenModules. |
Windows (x64): Failing:
Ah, it looks like the https://bugs.python.org/issue44133 bug. |
* Add test_frozenmain to test_embed * Add Programs/test_frozenmain.py * Add Programs/freeze_test_frozenmain.py * Add Programs/test_frozenmain.h * Add make regen-test-frozenmain * Add test_frozenmain command to Programs/_testembed * _testembed.c: add error(msg) function
Since Py_FrozenMain is not currently exported on Windows, I modified my PR to skip the test on Windows for now. I will enable the test once https://bugs.python.org/issue44133 will be fixed. |
eaede0d
into
python:main
|
|
https://bugs.python.org/issue44131