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