Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbfb90c

Browse files
[3.12] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435) (GH-113453)
(cherry picked from commit 53330f1) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 1bff2fd commit fbfb90c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/pythoninfo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,8 @@ def collect_windows(info_add):
924924
stderr=subprocess.PIPE,
925925
text=True)
926926
output = proc.communicate()[0]
927+
if proc.returncode == 0xc0000142:
928+
return
927929
if proc.returncode:
928930
output = ""
929931
except OSError:

0 commit comments

Comments
 (0)