10000 [3.14] gh-136315: Fix skipped multithreading test in test_zstd (GH-136320) by miss-islington · Pull Request #136322 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.14] gh-136315: Fix skipped multithreading test in test_zstd (GH-136320) #136322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-136315: Fix skipped multithreading test in test_zstd (GH-136320)
Fix skipped test in test_zstd
(cherry picked from commit 5dac137)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
  • Loading branch information
emmatyping authored and miss-islington committed Jul 5, 2025
commit ea24965d4464e230d5588061e1cac1e57644f7c2
9 changes: 6 additions & 3 deletions Lib/test/test_zstd.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,18 @@

TRAINED_DICT = None

SUPPORT_MULTITHREADING = False
# Cannot be deferred to setup as it is used to check whether or not to skip
# tests
try:
SUPPORT_MULTITHREADING = CompressionParameter.nb_workers.bounds() != (0, 0)
except Exception:
SUPPORT_MULTITHREADING = False

C_INT_MIN = -(2**31)
C_INT_MAX = (2**31) - 1


def setUpModule():
global SUPPORT_MULTITHREADING
SUPPORT_MULTITHREADING = CompressionParameter.nb_workers.bounds() != (0, 0)
# uncompressed size 130KB, more than a zstd block.
# with a frame epilogue, 4 bytes checksum.
global DAT_130K_D
Expand Down
Loading
0