Patchwork D5840: tests: escape backslash in makepatch.py inline file

login
register
mail settings
Submitter phabricator
Date Feb. 4, 2019, 11:38 p.m.
Message ID <a41199622b65bb7c86a0857f8870089e@localhost.localdomain>
Download mbox | patch
Permalink /patch/38416/
State Not Applicable
Headers show

Comments

phabricator - Feb. 4, 2019, 11:38 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7295279b9ea5: tests: escape backslash in makepatch.py inline file (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5840?vs=13767&id=13794

REVISION DETAIL
  https://phab.mercurial-scm.org/D5840

AFFECTED FILES
  tests/test-import-eol.t
  tests/test-mq-eol.t

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

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 @@ 
   > 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 <<EOF
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