-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-44131: Test Py_FrozenMain() #26126
Conversation
It seems wasteful to generate another frozen copy of importlib. There's already one in |
@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. |
|
|
https://bugs.python.org/issue44131