Skip to content

Commit

Permalink
clean lines
Browse files Browse the repository at this point in the history
  • Loading branch information
smythi93 committed Jul 27, 2024
1 parent 28dcb17 commit 317f1d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sflkit/runners/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ def get_pattern(obj):
r">"
)

@staticmethod
def clean_line(line: str) -> str:
return line.replace("\\\\", "\\")

@staticmethod
def parse_tests(output: str) -> List[str]:
trees = []
Expand Down Expand Up @@ -197,6 +201,7 @@ def parse_tests(output: str) -> List[str]:
)
else:
continue
line = PytestStructure.clean_line(line)
match = pattern.search(line)
if match:
name = (
Expand Down

0 comments on commit 317f1d9

Please sign in to comment.