There was an error while loading. Please reload this page.
2 parents 12d8805 + 46d7c11 commit 8004b3dCopy full SHA for 8004b3d
2 files changed
Lib/test/pythoninfo.py
@@ -658,6 +658,16 @@ def collect_zlib(info_add):
658
copy_attributes(info_add, zlib, 'zlib.%s', attributes)
659
660
661
+def collect_zstd(info_add):
662
+ try:
663
+ import _zstd
664
+ except ImportError:
665
+ return
666
+
667
+ attributes = ('zstd_version',)
668
+ copy_attributes(info_add, _zstd, 'zstd.%s', attributes)
669
670
671
def collect_expat(info_add):
672
try:
673
from xml.parsers import expat
@@ -1051,6 +1061,7 @@ def collect_info(info):
1051
1061
collect_tkinter,
1052
1062
collect_windows,
1053
1063
collect_zlib,
1064
+ collect_zstd,
1054
1065
collect_libregrtest_utils,
1055
1066
1056
1067
# Collecting from tests should be last as they have side effects.
Misc/NEWS.d/next/Library/2025-05-19-15-30-00.gh-issue-132983.asdsfs.rst
@@ -0,0 +1 @@
1
+Add :mod:`!compression.zstd` version information to ``test.pythoninfo``.
0 commit comments