Skip to content

Commit e0f3219

Browse files
committed
Fix expected max bounds on 32-bit Windows
1 parent f14d9ab commit e0f3219

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/verify_distribution.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

55
import os
6+
import platform
67
import sys
78
import unittest
89

@@ -180,8 +181,9 @@ def test_zstd_multithreaded(self):
180181
from compression import zstd
181182

182183
bounds = zstd.CompressionParameter.nb_workers.bounds()
183-
assert bounds == (0, 256), (
184-
f"Expected multithreading to be enabled, got {bounds}"
184+
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}"
185187
)
186188

187189
@unittest.skipIf("TCL_LIBRARY" not in os.environ, "TCL_LIBRARY not set")

0 commit comments

Comments
 (0)