py3: account for extra line break in email headers in test-notify.t stable
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 24 Oct 2019 16:56:36 +0200
branchstable
changeset 43323 84c15836a2d7
parent 43322 7d912413a3ae
child 43324 866bd2cf764b
py3: account for extra line break in email headers in test-notify.t Long headers appears to be wrapped with new lines. In test-notify.t, we have a "filter.py" that replaces "\n" by " ", so we get an extra space in a Message-Id with a long value.
tests/test-notify.t
--- a/tests/test-notify.t	Thu Oct 10 13:48:30 2019 +0200
+++ b/tests/test-notify.t	Thu Oct 24 16:56:36 2019 +0200
@@ -211,7 +211,8 @@
   Subject: changeset in $TESTTMP/b: b
   From: test@example.com
   X-Hg-Notification: changeset 00a13f371396
-  Message-Id: <hg.ba3098a36bd4c297288d16788623a841f81f618ea961a0f0fd65de7eb1191b66@example.com>
+  Message-Id: <hg.ba3098a36bd4c297288d16788623a841f81f618ea961a0f0fd65de7eb1191b66@example.com> (no-py3 !)
+  Message-Id:  <hg.ba3098a36bd4c297288d16788623a841f81f618ea961a0f0fd65de7eb1191b66@example.com> (py3 !)
   To: baz@example.com, foo@bar
   
   changeset 00a13f371396 in $TESTTMP/b