Skip to content

Commit 4492520

Browse files
committed
Import InterpreterPoolExecutor locally in test
1 parent 5e6b45b commit 4492520

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_struct.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from collections import abc
22
from itertools import combinations
33
import array
4-
from concurrent.futures import InterpreterPoolExecutor
54
import gc
65
import math
76
import operator
@@ -804,6 +803,8 @@ def test_c_complex_round_trip(self):
804803
def test_endian_table_init_subinterpreters(self):
805804
# Verify that the _struct extension module can be initialized
806805
# concurrently in subinterpreters (gh-140260).
806+
from concurrent.futures import InterpreterPoolExecutor
807+
807808
code = "import struct"
808809
with InterpreterPoolExecutor(max_workers=5) as executor:
809810
results = executor.map(support.run_in_subinterp, [code] * 5)

0 commit comments

Comments
 (0)