Skip to content

Commit 2de128e

Browse files
committed
Minor warning fix
1 parent 416335a commit 2de128e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pytest_reportportal/service.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,8 @@ def _get_item_dirs(self, item: Item) -> List[str]:
218218
"""
219219
root_path = item.session.config.rootdir.strpath
220220
dir_path = item.fspath.new(basename="")
221-
rel_dir = dir_path.new(dirname=dir_path.relto(root_path), basename="",
222-
drive="")
223-
return [d for d in rel_dir.parts(reverse=False) if d.basename]
221+
rel_dir = dir_path.new(dirname=dir_path.relto(root_path), basename="", drive="")
222+
return [str(d) for d in rel_dir.parts(reverse=False) if d.basename]
224223

225224
def _get_tree_path(self, item: Item) -> List[Item]:
226225
"""Get item of parents.

0 commit comments

Comments
 (0)