diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-12-05 22:21:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 22:21:54 (GMT) |
commit | 848acf7249b5669d73d70a7cb6e5ab60689cf825 (patch) | |
tree | cef8ba664711fdf3c21d4d4196a9b5b12d6da333 | |
parent | 2d8f976cde4794d174b44ff7d5fd970aa89c65e8 (diff) | |
download | cpython-848acf7249b5669d73d70a7cb6e5ab60689cf825.zip cpython-848acf7249b5669d73d70a7cb6e5ab60689cf825.tar.gz cpython-848acf7249b5669d73d70a7cb6e5ab60689cf825.tar.bz2 |
bpo-35389: test.pythoninfo logs platform.libc_ver (GH-10951)
-rw-r--r-- | Lib/test/pythoninfo.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 9befd12..81fca10 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 |