]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 24 Dec 2023 10:47:54 +0000 (11:47 +0100)
committerGitHub <noreply@github.com>
Sun, 24 Dec 2023 10:47:54 +0000 (10:47 +0000)
(cherry picked from commit 53330f167792a2947ab8b0faafb11019d7fb09b6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/pythoninfo.py

index 4f3ebb12ed957d01ed3a5e56c62e294d0433dbe2..998eba4f0812ab6dab799e541d00b42ad58ed912 100644 (file)
@@ -924,6 +924,8 @@ def collect_windows(info_add):
                                 stderr=subprocess.PIPE,
                                 text=True)
         output = proc.communicate()[0]
+        if proc.returncode == 0xc0000142:
+            return
         if proc.returncode:
             output = ""
     except OSError: