Skip to content

Commit 88cae85

Browse files
Copilotrchiodo
andauthored
test: rename process-pool worker helper for clarity
Agent-Logs-Url: https://github.com/microsoft/vscode-python-debugger/sessions/573cd841-8f08-4cd0-8021-229e2380164f Co-authored-by: rchiodo <19672699+rchiodo@users.noreply.github.com>
1 parent 732717b commit 88cae85

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/pythonFiles/debugging/test_pytest_processpool.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
from concurrent.futures import ProcessPoolExecutor, wait as futures_wait
44

55

6-
def worker_func() -> None:
6+
def sleep_briefly() -> None:
77
time.sleep(0.1)
88

99

1010
def run_process_pool_tasks() -> None:
11-
futures = []
12-
with ProcessPoolExecutor(max_workers=4) as pool:
13-
for _ in range(8):
14-
futures.append(pool.submit(worker_func))
11+
futures = []
12+
with ProcessPoolExecutor(max_workers=4) as pool:
13+
for _ in range(8):
14+
futures.append(pool.submit(sleep_briefly))
1515
completed_futures, not_done = futures_wait(futures)
1616
assert not not_done
1717
for fut in completed_futures:

0 commit comments

Comments
 (0)