mirror of
https://github.com/python/cpython.git
synced 2025-09-22 08:23:36 +00:00
Fix spurious diff if the cases generator is run on Windows (#108319)
This commit is contained in:
parent
fc23f34cc9
commit
a0bb4a39d1
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue