pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/a57209eb98943f4d8edbf56a55e98ec112e00e39

aa60c69660fa.css" /> gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332) · python/cpython@a57209e · GitHub
Skip to content

Commit a57209e

Browse files
vstinnerhugovk
andauthored
gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 0c83e8b commit a57209e

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/reusable-emscripten.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,7 @@ jobs:
6868
run: python3 Platforms/emscripten configure-host --host-runner node -- --config-cache
6969
- name: "Make host Python"
7070
run: python3 Platforms/emscripten make-host
71+
- name: "Display build info"
72+
run: python3 Platforms/emscripten run --pythoninfo
7173
- name: "Test"
7274
run: python3 Platforms/emscripten run --test

Platforms/emscripten/__main__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,8 @@ def run_emscripten_python(context):
591591

592592
if context.test:
593593
args = load_config_toml()["test-args"] + args
594+
elif context.pythoninfo:
595+
args = load_config_toml()["pythoninfo-args"] + args
594596

595597
os.execv(str(exec_script), [str(exec_script), *args])
596598

@@ -722,10 +724,16 @@ def main():
722724
action="store_true",
723725
default=False,
724726
help=(
725-
"If passed, will add the default test arguments to the beginning of the command. "
727+
"Add the default test arguments to the beginning of the command. "
726728
"Default arguments loaded from Platforms/emscripten/config.toml"
727729
),
728730
)
731+
run.add_argument(
732+
"--pythoninfo",
733+
action="store_true",
734+
default=False,
735+
help="Run -m test.pythoninfo",
736+
)
729737
run.add_argument(
730738
"args",
731739
nargs=argparse.REMAINDER,

Platforms/emscripten/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ test-args = [
1111
"--single-process",
1212
"-W",
1313
]
14+
pythoninfo-args = [
15+
"-m", "test.pythoninfo",
16+
]
1417

1518
[dependencies.libffi]
1619
url = "https://github.com/libffi/libffi/releases/download/v{version}/libffi-{version}.tar.gz"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy