Mercurial > hg
diff tests/test-fix.t @ 48293:7a4d187479b6
windows: use raw string in test log paths
Otherwise the backslashes will work as escapes on Windows and break everything.
Differential Revision: https://phab.mercurial-scm.org/D11725
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Fri, 22 Oct 2021 09:45:35 +0200 |
parents | f12a19d03d2c |
children | e6aecc37bfbf |
line wrap: on
line diff
--- a/tests/test-fix.t Fri Oct 29 14:40:46 2021 +0200 +++ b/tests/test-fix.t Fri Oct 22 09:45:35 2021 +0200 @@ -1785,7 +1785,7 @@ $ cat >> $LOGGER <<EOF > # Appends the input file's name to the log file. > import sys - > with open('$LOGFILE', 'a') as f: + > with open(r'$LOGFILE', 'a') as f: > f.write(sys.argv[1] + '\n') > sys.stdout.write(sys.stdin.read()) > EOF