From 53330f167792a2947ab8b0faafb11019d7fb09b6 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 24 Dec 2023 12:31:23 +0200 Subject: [PATCH] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435) --- Lib/test/pythoninfo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 49e41ca6cda..6dfb7f37e40 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -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: