Fix spurious diff if the cases generator is run on Windows (#108319)

This commit is contained in:
Alex Waygood 2023-08-22 20:49:39 +01:00 committed by GitHub
parent fc23f34cc9
commit a0bb4a39d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class Generator(Analyzer):
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"