summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email/test_headerregistry.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-18 00:13:58 (GMT)
committerNed Deily <nad@python.org>2019-06-18 00:13:57 (GMT)
commit516a6a254814d2bc6a90290dfc44d77fdfb4050b (patch)
treec8011e1b47da209cc7dd7424de1b23234f28ec0b /Lib/test/test_email/test_headerregistry.py
parentecafe8e42464b2c91a507fd26de06ce1203dd654 (diff)
downloadcpython-516a6a254814d2bc6a90290dfc44d77fdfb4050b.zip
cpython-516a6a254814d2bc6a90290dfc44d77fdfb4050b.tar.gz
cpython-516a6a254814d2bc6a90290dfc44d77fdfb4050b.tar.bz2
bpo-33529, email: Fix infinite loop in email header encoding (GH-12020) (GH-14162)
(cherry picked from commit c1f5667be1e3ec5871560c677402c1252c6018a6)
Diffstat (limited to 'Lib/test/test_email/test_headerregistry.py')
-rw-r--r--Lib/test/test_email/test_headerregistry.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_email/test_headerregistry.py b/Lib/test/test_email/test_headerregistry.py
index 30ce0ba..d100709 100644
--- a/Lib/test/test_email/test_headerregistry.py
+++ b/Lib/test/test_email/test_headerregistry.py
@@ -1643,10 +1643,10 @@ class TestFolding(TestHeaderBase):
self.assertEqual(
h.fold(policy=policy.default),
'X-Report-Abuse: =?utf-8?q?=3Chttps=3A//www=2Emailitapp=2E'
- 'com/report=5F?=\n'
- ' =?utf-8?q?abuse=2Ephp=3Fmid=3Dxxx-xxx-xxxx'
- 'xxxxxxxxxxxxxxxxxxxx=3D=3D-xxx-?=\n'
- ' =?utf-8?q?xx-xx=3E?=\n')
+ 'com/report=5Fabuse?=\n'
+ ' =?utf-8?q?=2Ephp=3Fmid=3Dxxx-xxx-xxxx'
+ 'xxxxxxxxxxxxxxxxxxxx=3D=3D-xxx-xx-xx?=\n'
+ ' =?utf-8?q?=3E?=\n')
if __name__ == '__main__':