diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py index 7d63e8a3cddc42..8da39b269ad4a7 100644 --- a/Lib/test/test_email/test_email.py +++ b/Lib/test/test_email/test_email.py @@ -744,7 +744,7 @@ def test_invalid_header_names(self): for name, value in invalid_headers: with self.subTest( name=name, - problem=name, + description=value, policy=thispolicy.__class__.__name__, method=method, ): diff --git a/Lib/test/test_email/test_message.py b/Lib/test/test_email/test_message.py index 651d9d027089b3..f933e04df00d08 100644 --- a/Lib/test/test_email/test_message.py +++ b/Lib/test/test_email/test_message.py @@ -1020,7 +1020,7 @@ def test_invalid_header_names(self): for name, value in invalid_headers: with self.subTest( name=name, - problem=name, + description=value, policy=thispolicy.__class__.__name__, method=method, ):