test_runner.py: Add a docstring to init_worker().

This commit is contained in:
Umair Khan 2017-04-18 09:40:24 +05:00 committed by Tim Abbott
parent 78803b2e56
commit 740a6c8081
1 changed files with 4 additions and 0 deletions

View File

@ -290,6 +290,10 @@ def create_test_databases(database_id):
def init_worker(counter):
# type: (Synchronized) -> None
"""
This function runs only under parallel mode. It initializes the
individual processes which are also called workers.
"""
global _worker_id
test_classes.API_KEYS = {}