# HG changeset patch # User Gregory Szorc # Date 2019-02-04 22:10:10 # Node ID 7295279b9ea523dac7049dc246205c4963ef4f56 # Parent 1ea1bba1c5be51f14d8017ba62ac0f6dd45e2f41 tests: escape backslash in makepatch.py inline file This avoids some SyntaxWarning on Python 3.8 due to unescaped \. Differential Revision: https://phab.mercurial-scm.org/D5840 diff --git a/tests/test-import-eol.t b/tests/test-import-eol.t --- a/tests/test-import-eol.t +++ b/tests/test-import-eol.t @@ -17,9 +17,9 @@ > 'empty:stripped-crlf': b'\r\n'}[sys.argv[1]]) > w(b' d\n') > w(b'-e\n') - > w(b'\ No newline at end of file\n') + > w(b'\\ No newline at end of file\n') > w(b'+z\r\n') - > w(b'\ No newline at end of file\r\n') + > w(b'\\ No newline at end of file\r\n') > EOF $ hg init repo diff --git a/tests/test-mq-eol.t b/tests/test-mq-eol.t --- a/tests/test-mq-eol.t +++ b/tests/test-mq-eol.t @@ -23,9 +23,9 @@ Test interactions between mq and patch.e > w(b' c\r\n') > w(b' d\n') > w(b'-e\n') - > w(b'\ No newline at end of file\n') + > w(b'\\ No newline at end of file\n') > w(b'+z\r\n') - > w(b'\ No newline at end of file\r\n') + > w(b'\\ No newline at end of file\r\n') > EOF $ cat > cateol.py <