mirror of https://github.com/python/cpython
Fix spurious diff if the cases generator is run on Windows (#108319)
This commit is contained in:
parent
fc23f34cc9
commit
a0bb4a39d1
|
@ -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…
Reference in New Issue