Skip to content

Commit 22e1873

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/verify_distribution.py

Lines changed: 3 additions & 1 deletion
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,7 +181,8 @@ def test_zstd_multithreaded(self):
180181
from compression import zstd
181182

182183
bounds = zstd.CompressionParameter.nb_workers.bounds()
183-
assert bounds == (0, 256), (
184+
expected_max = 64 if os.name == "nt" and platform.machine() == "i386" else 256
185+
assert bounds == (0, expected_max), (
184186
f"Expected multithreading to be enabled, got {bounds}"
185187
)
186188

0 commit comments

Comments
 (0)