# HG changeset patch # User Raphaël Gomès # Date 2021-10-22 07:45:35 # Node ID 7a4d187479b637357c8097069119094f5e761491 # Parent aad84024660f000a38ac2f2e35088d4d99ca42e9 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 diff --git a/tests/test-fix.t b/tests/test-fix.t --- a/tests/test-fix.t +++ b/tests/test-fix.t @@ -1785,7 +1785,7 @@ fixed. $ cat >> $LOGGER < # 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