From fbb2551a46a41610827a2e60a793b061738cab45 Mon Sep 17 00:00:00 2001 From: Debian Python Team Date: Thu, 27 Mar 2025 19:23:02 +0100 Subject: [PATCH] patchbomb-ambiguous-address MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit # HG changeset patch # User Raphaël Gomès # Date 1729684194 -7200 # Wed Oct 23 13:49:54 2024 +0200 # Branch stable # Node ID d906406658a947ab64b34302df15be21e928ba24 # Parent e760a36a601336f75016e5c2bbc5a53da2ea7182 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 Gbp-Pq: Name patchbomb-ambiguous-address.patch --- tests/test-patchbomb.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t index 5406d73..4002de0 100644 --- a/tests/test-patchbomb.t +++ b/tests/test-patchbomb.t @@ -2379,7 +2379,7 @@ test multiple flags for multiple patches: test multi-address parsing: - $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam' \ + $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam' \ > -t toast -c 'foo,bar@example.com' -c '"A, B <>" ' -s test -r 0 \ > --config email.bcc='"Quux, A." ' this patch series consists of 1 patches. @@ -2403,7 +2403,7 @@ test multi-address parsing: To: spam , eggs, toast (no-py3 !) Cc: foo, bar@example.com, "A, B <>" (no-py3 !) Bcc: "Quux, A." (no-py3 !) - To: =?iso-8859-1?q?spam?= , eggs, toast (py3 !) + To: =?iso-8859-1?q?spam?= , toast (py3 !) Cc: foo, bar@example.com, =?iso-8859-1?q?A=2C_B_=3C=3E?= (py3 !) Bcc: =?iso-8859-1?q?Quux=2C_A=2E?= (py3 !) -- 2.30.2