[3.10] bpo-45382: test.pythoninfo logs more Windows versions (GH-30891) (GH-30894)
Add the following info to test.pythoninfo:
* windows.ver: output of the shell "ver" command
* windows.version and windows.version_caption: output of the
"wmic os get Caption,Version /value" command.
(cherry picked from commit
b0898f4aa90d9397e23aef98a2d6b82445ee7455)
* bpo-45382: test.pythoninfo: set wmic.exe encoding to OEM (GH-30890)
(cherry picked from commit
cef0a5458f254c2f8536b928dee25862ca90ffa6)
(cherry picked from commit
4a57fa296b92125e41220ecd201eb2e432b79fb0)
Co-authored-by: Victor Stinner <vstinner@python.org>