aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_email/test_headerregistry.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-08 13:13:01 -0500
committerR David Murray <rdmurray@bitdance.com>2014-02-08 13:13:01 -0500
commit01e46ee7e28f5f14ede2b7078cfd277199751dc3 (patch)
treeab1808c55105351d4bf0a8e794e9d7eb70139d45 /Lib/test/test_email/test_headerregistry.py
parentff9616bbf7ecbd55a7206dae28f06ef90f270566 (diff)
parent0400d33928e6b463db164836da670700f03edc5d (diff)
downloadcpython-01e46ee7e28f5f14ede2b7078cfd277199751dc3.tar.gz
cpython-01e46ee7e28f5f14ede2b7078cfd277199751dc3.zip
Merge: #16983: Apply postel's law to encoded words inside quoted strings.
Diffstat (limited to 'Lib/test/test_email/test_headerregistry.py')
-rw-r--r--Lib/test/test_email/test_headerregistry.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_email/test_headerregistry.py b/Lib/test/test_email/test_headerregistry.py
index f2df3720eb9..7d64a3829c3 100644
--- a/Lib/test/test_email/test_headerregistry.py
+++ b/Lib/test/test_email/test_headerregistry.py
@@ -1155,6 +1155,16 @@ class TestAddressHeader(TestHeaderBase):
'example.com',
None),
+ 'rfc2047_atom_in_quoted_string_is_decoded':
+ ('"=?utf-8?q?=C3=89ric?=" <foo@example.com>',
+ [errors.InvalidHeaderDefect],
+ 'Éric <foo@example.com>',
+ 'Éric',
+ 'foo@example.com',
+ 'foo',
+ 'example.com',
+ None),
+
}
# XXX: Need many more examples, and in particular some with names in