mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.11] gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435) (GH-113452)
(cherry picked from commit 53330f1677
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
d04ca4ccd7
commit
88cc19b530
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue