8000
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 887e5c8 commit 5dac137Copy full SHA for 5dac137
Lib/test/test_zstd.py
@@ -62,15 +62,18 @@
62
63
TRAINED_DICT = None
64
65
-SUPPORT_MULTITHREADING = False
+# Cannot be deferred to setup as it is used to check whether or not to skip
66
+# tests
67
+try:
68
+ SUPPORT_MULTITHREADING = CompressionParameter.nb_workers.bounds() != (0, 0)
69
+except Exception:
70
+ SUPPORT_MULTITHREADING = False
71
72
C_INT_MIN = -(2**31)
73
C_INT_MAX = (2**31) - 1
74
75
76
def setUpModule():
- global SUPPORT_MULTITHREADING
- SUPPORT_MULTITHREADING = CompressionParameter.nb_workers.bounds() != (0, 0)
77
# uncompressed size 130KB, more than a zstd block.
78
# with a frame epilogue, 4 bytes checksum.
79
global DAT_130K_D
0 commit comments