diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-12-24 10:31:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-24 10:31:23 (GMT) |
commit | 53330f167792a2947ab8b0faafb11019d7fb09b6 (patch) | |
tree | d94c627a6a162539e841fbcc715a3db77d213b6a | |
parent | ce77ee50358c0668eda5078f50b38f0770a370ab (diff) | |
download | cpython-53330f167792a2947ab8b0faafb11019d7fb09b6.zip cpython-53330f167792a2947ab8b0faafb11019d7fb09b6.tar.gz cpython-53330f167792a2947ab8b0faafb11019d7fb09b6.tar.bz2 |
gh-113440: Ignore the "ver" command failure with exit code 0xc0000142 (GH-113435)
-rw-r--r-- | Lib/test/pythoninfo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 49e41ca..6dfb7f3 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: |