fix test_walk_moler_python_files_is_generator_return_all_files_in_dir
@@ -33,7 +33,7 @@ def _list_in_path(listing_type):
if listing_type == 'allfiles':
file_list = [f for root, dirs, files in walk(abs_test_path) for f in files if isfile(join(root, f))]
elif listing_type == 'fullpath':
- file_list = [path.join(cmd_dir_under_test, path.basename(root), f) for root, dirs, files in walk(abs_test_path)
+ file_list = [path.join(cmd_dir_under_test, root.split(abs_test_path)[1], f) for root, dirs, files in walk(abs_test_path)
for f in files if isfile(join(root, f)) and '__init__' not in f and '.pyc' not in f]
elif listing_type == 'only_py':
file_list = [f for root, dirs, files in walk(abs_test_path)
