changeset 52030:d906406658a9 stable

patchbomb: don't test ambiguous address This is a bug in Python's `email` package and shouldn't be relied on. Python 3.12 has fixed this problemĀ¹ and raises an exception. We keep the multiple `-t` because this is still relevant for testing. [1] https://github.com/python/cpython/issues/102988 [2] https://docs.python.org/3/whatsnew/changelog.html
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 23 Oct 2024 13:49:54 +0200
parents e760a36a6013
children f8c18a5a345b
files tests/test-patchbomb.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-patchbomb.t	Wed Oct 16 18:06:36 2024 -0400
+++ b/tests/test-patchbomb.t	Wed Oct 23 13:49:54 2024 +0200
@@ -2414,7 +2414,7 @@
   
 
 test multi-address parsing:
-  $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
+  $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam>' \
   >  -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
   >  --config email.bcc='"Quux, A." <quux>'
   this patch series consists of 1 patches.
@@ -2435,7 +2435,7 @@
   User-Agent: Mercurial-patchbomb/* (glob)
   Date: Tue, 01 Jan 1980 00:01:00 +0000
   From: quux
-  To: =?iso-8859-1?q?spam?= <spam>, eggs, toast
+  To: =?iso-8859-1?q?spam?= <spam>, toast
   Cc: foo, bar@example.com, =?iso-8859-1?q?A=2C_B_=3C=3E?= <a@example.com>
   Bcc: =?iso-8859-1?q?Quux=2C_A=2E?= <quux>