Skip to content

Commit

Permalink
Minor warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Nov 21, 2024
1 parent 416335a commit 2de128e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pytest_reportportal/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,8 @@ def _get_item_dirs(self, item: Item) -> List[str]:
"""
root_path = item.session.config.rootdir.strpath
dir_path = item.fspath.new(basename="")
rel_dir = dir_path.new(dirname=dir_path.relto(root_path), basename="",
drive="")
return [d for d in rel_dir.parts(reverse=False) if d.basename]
rel_dir = dir_path.new(dirname=dir_path.relto(root_path), basename="", drive="")
return [str(d) for d in rel_dir.parts(reverse=False) if d.basename]

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

0 comments on commit 2de128e

Please sign in to comment.