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 f14d9ab commit e0f3219Copy full SHA for e0f3219
src/verify_distribution.py
@@ -3,6 +3,7 @@
3
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
5
import os
6
+import platform
7
import sys
8
import unittest
9
@@ -180,8 +181,9 @@ def test_zstd_multithreaded(self):
180
181
from compression import zstd
182
183
bounds = zstd.CompressionParameter.nb_workers.bounds()
- assert bounds == (0, 256), (
184
- f"Expected multithreading to be enabled, got {bounds}"
+ expected_max = 64 if os.name == "nt" and platform.machine() == "i686" else 256
185
+ assert bounds == (0, expected_max), (
186
+ f"Expected (0, {expected_max}) threads, got {bounds}"
187
)
188
189
@unittest.skipIf("TCL_LIBRARY" not in os.environ, "TCL_LIBRARY not set")
0 commit comments