]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 24 Dec 2023 10:31:23 +0000 (12:31 +0200)
committerGitHub <noreply@github.com>
Sun, 24 Dec 2023 10:31:23 +0000 (12:31 +0200)
Lib/test/pythoninfo.py

index 49e41ca6cdaf98cc6103eb28c01a52633881d143..6dfb7f37e406a58221458e31dd9c55433d8703e1 100644 (file)
@@ -925,6 +925,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: