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 5e6b45b commit 4492520Copy full SHA for 4492520
Lib/test/test_struct.py
@@ -1,7 +1,6 @@
1
from collections import abc
2
from itertools import combinations
3
import array
4
-from concurrent.futures import InterpreterPoolExecutor
5
import gc
6
import math
7
import operator
@@ -804,6 +803,8 @@ def test_c_complex_round_trip(self):
804
803
def test_endian_table_init_subinterpreters(self):
805
# Verify that the _struct extension module can be initialized
806
# concurrently in subinterpreters (gh-140260).
+ from concurrent.futures import InterpreterPoolExecutor
807
+
808
code = "import struct"
809
with InterpreterPoolExecutor(max_workers=5) as executor:
810
results = executor.map(support.run_in_subinterp, [code] * 5)
0 commit comments