Update ThreadPoolExecutor attributes for Python 3.14 (#14263)

This commit is contained in:
Marc Mueller
2025-06-21 10:51:33 -07:00
committed by GitHub
parent e6ec3600ab
commit 91868eadd0
2 changed files with 9 additions and 5 deletions
@@ -51,7 +51,7 @@ if sys.version_info >= (3, 14):
worker_context = context[0]()
assert_type(worker_context, concurrent.futures.interpreter.WorkerContext)
resolve_task = context[1]
# Function should enfore that the arguments are correct.
# Function should enforce that the arguments are correct.
res = resolve_task(_initializer, 1)
assert_type(res, tuple[bytes, Literal["function"]])
# When the function is a script, the arguments should be a string.