changeset 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 aad84024660f
children e2836d08c88c
files tests/test-fix.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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