Skip to content

Commit 6e9f316

Browse files
authored
Display zstd threading bounds on failure and fix assert for 32-bin Windows (#770)
1 parent 049bef0 commit 6e9f316

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/verify_distribution.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ def test_gil_disabled(self):
179179
def test_zstd_multithreaded(self):
180180
from compression import zstd
181181

182-
assert zstd.CompressionParameter.nb_workers.bounds() == (0, 256)
182+
max_threads = zstd.CompressionParameter.nb_workers.bounds()[1]
183+
assert max_threads > 0, (
184+
"Expected multithreading to be enabled but max threads is zero"
185+
)
183186

184187
@unittest.skipIf("TCL_LIBRARY" not in os.environ, "TCL_LIBRARY not set")
185188
@unittest.skipIf("DISPLAY" not in os.environ, "DISPLAY not set")

0 commit comments

Comments
 (0)