File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 33# file, You can obtain one at https://mozilla.org/MPL/2.0/.
44
55import os
6- import platform
76import sys
87import unittest
98
@@ -180,10 +179,9 @@ def test_gil_disabled(self):
180179 def test_zstd_multithreaded (self ):
181180 from compression import zstd
182181
183- bounds = zstd .CompressionParameter .nb_workers .bounds ()
184- expected_max = 64 if os .name == "nt" and platform .machine () == "x86" else 256
185- assert bounds == (0 , expected_max ), (
186- f"Expected (0, { expected_max } ) threads, got { bounds } "
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"
187185 )
188186
189187 @unittest .skipIf ("TCL_LIBRARY" not in os .environ , "TCL_LIBRARY not set" )
You can’t perform that action at this time.
0 commit comments