diff options
author | Victor Stinner <vstinner@python.org> | 2021-05-17 23:48:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 23:48:35 +0200 |
commit | eaede0ded72e67cee4a91c086847d54cb64ca74c (patch) | |
tree | 3c9bf4c33572db77fc79ae6a701628614c94f3a6 /Programs/test_frozenmain.py | |
parent | f32c7950e0077b6d9a8e217c2796fc582f18ca08 (diff) | |
download | cpython-git-eaede0ded72e67cee4a91c086847d54cb64ca74c.tar.gz |
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
Diffstat (limited to 'Programs/test_frozenmain.py')
-rw-r--r-- | Programs/test_frozenmain.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Programs/test_frozenmain.py b/Programs/test_frozenmain.py new file mode 100644 index 0000000000..aa79106df6 --- /dev/null +++ b/Programs/test_frozenmain.py @@ -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']}") |