summaryrefslogtreecommitdiff
path: root/Lib/test/pythoninfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/pythoninfo.py')
-rw-r--r--Lib/test/pythoninfo.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py
index 9242a36bed..3958764a6a 100644
--- a/Lib/test/pythoninfo.py
+++ b/Lib/test/pythoninfo.py
@@ -525,6 +525,15 @@ def collect_cc(info_add):
info_add('CC.version', text)
+def collect_gdbm(info_add):
+ try:
+ import _gdbm
+ except ImportError:
+ return
+
+ info_add('gdbm.GDBM_VERSION', '.'.join(map(str, _gdbm._GDBM_VERSION)))
+
+
def collect_info(info):
error = False
info_add = info.add
@@ -552,6 +561,7 @@ def collect_info(info):
collect_testcapi,
collect_resource,
collect_cc,
+ collect_gdbm,
# Collecting from tests should be last as they have side effects.
collect_test_socket,