]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332) (#146336)
authorVictor Stinner <vstinner@python.org>
Mon, 23 Mar 2026 17:54:57 +0000 (18:54 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2026 17:54:57 +0000 (17:54 +0000)
gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332)

(cherry picked from commit a57209eb98943f4d8edbf56a55e98ec112e00e39)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Platforms/emscripten/__main__.py
Platforms/emscripten/config.toml

index 6a7963413da31a9d5c75feedb1452127bb46e1b6..28f81e8a7a8a611d68a687a7a56431e633b6c3af 100644 (file)
@@ -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,
index c474078fb48ba35384746cc2fcb131c8074228ec..67f975b2fe44e6ac498988a09a00bc385a7e7cde 100644 (file)
@@ -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"