def test_map(self, simple_pool: SimplePool): TestSimplePool._initial() simple_pool.initial() simple_pool.map(function=target_function_for_map, args_iter=Test_Function_Args) TestSimplePool._chk_map_record() _results = simple_pool.get_result() TestSimplePool.chk_results(results=_results, expected_size=len(Test_Function_Args))
def test_map(self, thread_pool: SimplePool): TestSimplePool._initial() thread_pool.initial() thread_pool.map(function=map_target_fun, args_iter=Test_Function_Args) TestSimplePool._chk_map_record()