From e0ba544eb62664daa09e1aa737e37a5e153292d4 Mon Sep 17 00:00:00 2001 From: Luyao Huang Date: Tue, 20 Aug 2019 17:30:27 +0800 Subject: [PATCH] Fix broken unit test Signed-off-by: Luyao Huang --- tests/test_case_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_case_generator.py b/tests/test_case_generator.py index 66f76e3..3942b11 100644 --- a/tests/test_case_generator.py +++ b/tests/test_case_generator.py @@ -78,8 +78,8 @@ def test_gen_cases_special_method(): case_generator.gen_depend_map(test_funcs) src_env = Env() - start_env = Env.gen_require_env(mock_func1) - end_env = Env.gen_require_env(mock_func6) + start_env = list(Env.gen_require_env(mock_func1)) + end_env = list(Env.gen_require_env(mock_func6)) cases = list(case_generator.gen_cases_special(src_env, start_env, end_env)) assert len(cases) == 17 for case in cases: