Update ThreadPoolExecutor attributes for Python 3.14 (#14263)

This commit is contained in:
Marc Mueller authored and GitHub committed 2025-06-21 10:51:33 -07:00
1 parent e6ec3600ab
commit 91868eadd0
2 files changed
+9 -5

No files matched your search

@@ -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.