File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 88import itertools
99import pickle
1010import platform
11+ import sys
1112import time
1213import traceback
1314import warnings
4445
4546
4647# -- Runner definitions
47- # Check if InterpreterPoolExecutor is available (Python 3.14+)
48- _has_interpreter_pool = hasattr (concurrent , "InterpreterPoolExecutor" )
48+ _has_interpreter_pool = sys .version_info >= (3 , 14 )
4949
5050if _has_interpreter_pool :
51- # Use InterpreterPoolExecutor for Python 3.14+
52- # It provides better isolation and performance than ProcessPoolExecutor
5351 _default_executor = concurrent .InterpreterPoolExecutor # type: ignore[misc,attr-defined]
5452elif platform .system () == "Linux" :
5553 _default_executor = concurrent .ProcessPoolExecutor # type: ignore[misc]
You can’t perform that action at this time.
0 commit comments