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
Import InterpreterPoolExecutor locally in test
  • Loading branch information
ashm-dev committed Nov 3, 2025
commit 44925202349c778140c5c7dd24c02a436724598e
3 changes: 2 additions & 1 deletion Lib/test/test_struct.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from collections import abc
from itertools import combinations
import array
from concurrent.futures import InterpreterPoolExecutor
import gc
import math
import operator
Expand Down Expand Up @@ -804,6 +803,8 @@ def test_c_complex_round_trip(self):
def test_endian_table_init_subinterpreters(self):
Comment thread
ashm-dev marked this conversation as resolved.
# Verify that the _struct extension module can be initialized
# concurrently in subinterpreters (gh-140260).
from concurrent.futures import InterpreterPoolExecutor

code = "import struct"
with InterpreterPoolExecutor(max_workers=5) as executor:
results = executor.map(support.run_in_subinterp, [code] * 5)
Comment thread
ashm-dev marked this conversation as resolved.
Outdated
Expand Down
Loading