From 6c33c5d51397b9b68fd8e401e1a7aaba4b14f824 Mon Sep 17 00:00:00 2001
From: Pavel Nekrasov
Date: Thu, 5 Nov 2026 21:54:07 +0300
Subject: [PATCH] Fix discarded header tuple in test_email test_message
Append ('content-shadow', 'Logrus') to msg_headers instead of
creating and discarding the tuple.
---
Lib/test/test_email/test_message.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Lib/test/test_email/test_message.py b/Lib/test/test_email/test_message.py
index 974b0ceaafbde4..ea30a94dfda24a 100644
--- a/Lib/test/test_email/test_message.py
+++ b/Lib/test/test_email/test_message.py
@@ -582,7 +582,7 @@ def _make_subtype_test_message(self, subtype):
('From', 'bar@foo.com'),
]
if subtype != 'no_content':
- ('content-shadow', 'Logrus'),
+ msg_headers.append(('content-shadow', 'Logrus'))
msg_headers.append(('X-Random-Header', 'Corwin'))
if subtype == 'text':
payload = ''