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

Skip to content

Commit 53330f1

Browse files
gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435)
1 parent ce77ee5 commit 53330f1

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
@@ -925,6 +925,8 @@ def collect_windows(info_add):
925925
stderr=subprocess.PIPE,
926926
text=True)
927927
output = proc.communicate()[0]
928+
if proc.returncode == 0xc0000142:
929+
return
928930
if proc.returncode:
929931
output = ""
930932
except OSError:

0 commit comments

Comments
 (0)