Skip to content

Commit c790718

Browse files
committed
Give up on conditional testing
1 parent 254016c commit c790718

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/verify_distribution.py

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

55
import os
6-
import platform
76
import sys
87
import 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")

0 commit comments

Comments
 (0)