Skip to content

Commit 585a338

Browse files
authored
Merge pull request #20054 from infosiftr/python-zstd
Test for zstd in Python 3.14+
2 parents 90bc0e9 + 8e76d31 commit 585a338

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/tests/python-imports/container.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
import lzma
2525
assert(lzma.decompress(lzma.compress(b'IT WORKS IT WORKS IT WORKS')) == b'IT WORKS IT WORKS IT WORKS')
2626

27+
if sys.version_info[1] >= 14:
28+
# https://docs.python.org/3.14/library/compression.zstd.html
29+
from compression import zstd
30+
assert(zstd.decompress(zstd.compress(b'IT WORKS IT WORKS IT WORKS')) == b'IT WORKS IT WORKS IT WORKS')
31+
2732
# https://github.com/docker-library/python/pull/954
2833
shouldHaveSetuptoolsAndWheel = sys.version_info[0] == 3 and sys.version_info[1] < 12
2934
import importlib.util

0 commit comments

Comments
 (0)