Home
last modified time | relevance | path

Searched refs:done_tasks (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_threaded_import.py21 def task(N, done, done_tasks, errors): argument
25 if len(done_tasks) % 2:
36 done_tasks.append(threading.get_ident())
37 finished = len(done_tasks) == N
124 done_tasks = []
128 args=(N, done, done_tasks, errors,))
135 dbg_info = 'done: %s/%s' % (len(done_tasks), N)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_locks.py941 done_tasks = [t for t in race_tasks if t.done() and t.result()]
942 self.assertTrue(2, len(done_tasks))