From 848acf7249b5669d73d70a7cb6e5ab60689cf825 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 5 Dec 2018 23:21:54 +0100 Subject: [PATCH] bpo-35389: test.pythoninfo logs platform.libc_ver (GH-10951) --- Lib/test/pythoninfo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 9befd12e409..81fca10eaeb 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