Skip to content

Commit 8458f6b

Browse files
committed
Add test case
1 parent bf0e8d1 commit 8458f6b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/verify_distribution.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ def test_gil_disabled(self):
172172

173173
self.assertEqual(sysconfig.get_config_var("Py_GIL_DISABLED"), wanted)
174174

175+
@unittest.skipIf(
176+
sys.version_info[:2] < (3, 14),
177+
"zstd is only available in 3.14+",
178+
)
179+
def test_zstd_multithreaded(self):
180+
from compression import zstd
181+
182+
assert zstd.CompressionParameter.nb_workers.bounds() == (0, 256)
183+
175184
@unittest.skipIf("TCL_LIBRARY" not in os.environ, "TCL_LIBRARY not set")
176185
@unittest.skipIf("DISPLAY" not in os.environ, "DISPLAY not set")
177186
def test_tkinter(self):

0 commit comments

Comments
 (0)