mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-44131: Test Py_FrozenMain() (GH-26126)
* 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
This commit is contained in:
parent
f32c7950e0
commit
eaede0ded7
10 changed files with 203 additions and 32 deletions
9
Programs/test_frozenmain.py
Normal file
9
Programs/test_frozenmain.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
import sys
|
||||
import _testinternalcapi
|
||||
|
||||
print("Frozen Hello World")
|
||||
print("sys.argv", sys.argv)
|
||||
config = _testinternalcapi.get_configs()['config']
|
||||
print(f"config program_name: {config['program_name']}")
|
||||
print(f"config executable: {config['executable']}")
|
||||
print(f"config use_environment: {config['use_environment']}")
|
Loading…
Add table
Add a link
Reference in a new issue