Skip to content

Commit

Permalink
Fix spurious diff if the cases generator is run on Windows (python#10…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Aug 22, 2023
1 parent fc23f34 commit a0bb4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/cases_generator/generate_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def from_source_files(self) -> str:
except ValueError:
# May happen on Windows if root and temp on different volumes
pass
filenames.append(filename)
filenames.append(filename.replace(os.path.sep, posixpath.sep))
paths = f"\n{self.out.comment} ".join(filenames)
return f"{self.out.comment} from:\n{self.out.comment} {paths}\n"

Expand Down

0 comments on commit a0bb4a3

Please sign in to comment.