pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/140909/commits/14088965589880127f2826516d09ca103eff87f4

mer-primitives-16480f699a2fb35f.css" /> gh-140260: Fix data race in _struct module initialization with subinterpreters by ashm-dev · Pull Request #140909 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Skip test when InterpreterPoolExecutor missing
  • Loading branch information
ashm-dev committed Nov 5, 2025
commit 14088965589880127f2826516d09ca103eff87f4
9 changes: 4 additions & 5 deletions Lib/test/test_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,14 +800,13 @@ def test_c_complex_round_trip(self):
round_trip = struct.unpack(f, struct.pack(f, z))[0]
self.assertComplexesAreIdentical(z, round_trip)

@unittest.skipUnless(
support.Py_GIL_DISABLED,
'this test can only possibly fail with GIL disabled'
)
def test_endian_table_init_subinterpreters(self):
# Verify that the _struct extension module can be initialized
# concurrently in subinterpreters (gh-140260).
from concurrent.futures import InterpreterPoolExecutor
try:
from concurrent.futures import InterpreterPoolExecutor
except ImportError:
raise unittest.SkipTest("InterpreterPoolExecutor not available")

code = "import struct"
with InterpreterPoolExecutor(max_workers=5) as executor:
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy