We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 049bef0 commit 6e9f316Copy full SHA for 6e9f316
src/verify_distribution.py
@@ -179,7 +179,10 @@ def test_gil_disabled(self):
179
def test_zstd_multithreaded(self):
180
from compression import zstd
181
182
- assert zstd.CompressionParameter.nb_workers.bounds() == (0, 256)
+ 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
+ )
186
187
@unittest.skipIf("TCL_LIBRARY" not in os.environ, "TCL_LIBRARY not set")
188
@unittest.skipIf("DISPLAY" not in os.environ, "DISPLAY not set")
0 commit comments