[Python-checkins] bpo-35389: test.pythoninfo logs platform.libc_ver (GH-10951)

Victor Stinner webhook-mailer at python.org
Wed Dec 5 17:21:57 EST 2018


https://github.com/python/cpython/commit/848acf7249b5669d73d70a7cb6e5ab60689cf825
commit: 848acf7249b5669d73d70a7cb6e5ab60689cf825
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2018-12-05T23:21:54+01:00
summary:

bpo-35389: test.pythoninfo logs platform.libc_ver (GH-10951)

files:
M Lib/test/pythoninfo.py

diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py
index 9befd12e4095..81fca10eaeb1 100644
--- a/Lib/test/pythoninfo.py
+++ b/Lib/test/pythoninfo.py
@@ -144,6 +144,10 @@ def collect_platform(info_add):
     info_add('platform.platform',
              platform.platform(aliased=True))
 
+    libc_ver = ('%s %s' % platform.libc_ver()).strip()
+    if libc_ver:
+        info_add('platform.libc_ver', libc_ver)
+
 
 def collect_locale(info_add):
     import locale



More information about the Python-checkins mailing list