From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 24 Dec 2023 10:49:34 +0000 (+0100) Subject: [3.12] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH... X-Git-Tag: v3.12.2~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbfb90c8200edb9cb50bb81a8374a41401e34990;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435) (GH-113453) (cherry picked from commit 53330f167792a2947ab8b0faafb11019d7fb09b6) Co-authored-by: Serhiy Storchaka --- diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 4f3ebb12ed95..998eba4f0812 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -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: