def setup_method(self, method):
    default_start_method = get_context().get_start_method()
    assert (default_start_method == 'loky'), default_start_method
    executor = get_reusable_executor(max_workers=2)
    _check_executor_started(executor)
    _check_subprocesses_number(executor, expected_max_process_number=2)
def setup_method(self, method):
    default_start_method = get_context().get_start_method()
    assert (default_start_method == 'loky'), default_start_method
    executor = get_reusable_executor(max_workers=2)
    _check_executor_started(executor)
    _check_subprocesses_number(executor, expected_max_process_number=2)