https://github.com/python/cpython/commit/c6dd76471924c0682b6f7d99b938601fa6785522
commit: c6dd76471924c0682b6f7d99b938601fa6785522
branch: 3.14
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-03-23T17:54:57Z
summary:

[3.14] gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332) 
(#146336)

gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332)


(cherry picked from commit a57209eb98943f4d8edbf56a55e98ec112e00e39)

Co-authored-by: Hugo van Kemenade <[email protected]>

files:
M Platforms/emscripten/__main__.py
M Platforms/emscripten/config.toml

diff --git a/Platforms/emscripten/__main__.py b/Platforms/emscripten/__main__.py
index 6a7963413da31a..28f81e8a7a8a61 100644
--- a/Platforms/emscripten/__main__.py
+++ b/Platforms/emscripten/__main__.py
@@ -580,6 +580,8 @@ def run_emscripten_python(context):
 
     if context.test:
         args = load_config_toml()["test-args"] + args
+    elif context.pythoninfo:
+        args = load_config_toml()["pythoninfo-args"] + args
 
     os.execv(str(exec_script), [str(exec_script), *args])
 
@@ -703,10 +705,16 @@ def main():
         action="store_true",
         default=False,
         help=(
-            "If passed, will add the default test arguments to the beginning 
of the command. "
+            "Add the default test arguments to the beginning of the command. "
             "Default arguments loaded from Platforms/emscripten/config.toml"
         )
     )
+    run.add_argument(
+        "--pythoninfo",
+        action="store_true",
+        default=False,
+        help="Run -m test.pythoninfo",
+    )
     run.add_argument(
         "args",
         nargs=argparse.REMAINDER,
diff --git a/Platforms/emscripten/config.toml b/Platforms/emscripten/config.toml
index c474078fb48ba3..67f975b2fe44e6 100644
--- a/Platforms/emscripten/config.toml
+++ b/Platforms/emscripten/config.toml
@@ -11,6 +11,9 @@ test-args = [
     "--single-process",
     "-W",
 ]
+pythoninfo-args = [
+    "-m", "test.pythoninfo",
+]
 
 [libffi]
 url = 
"https://github.com/libffi/libffi/releases/download/v{version}/libffi-{version}.tar.gz";

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to