diff options
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | 2019-05-23 04:13:16 +0300 |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2019-05-22 21:13:16 -0400 |
commit | ef5bb25e2d6147cd44be9c9b166525fb30485be0 (patch) | |
tree | 34b3fa59b4861461fab7223207c8605b75e88ec6 /Lib/test | |
parent | 6bc5917903b722bdd0e5d3020949f26fec5dfe9a (diff) | |
download | cpython-git-ef5bb25e2d6147cd44be9c9b166525fb30485be0.tar.gz |
bpo-27737: Allow whitespace only headers encoding (#13478)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_email/test_email.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py index 621754cf75..dfb3be8438 100644 --- a/Lib/test/test_email/test_email.py +++ b/Lib/test/test_email/test_email.py @@ -4964,6 +4964,9 @@ A very long line that must get split to something other than at the msg['SomeHeader'] = ' value with leading ws' self.assertEqual(str(msg), "SomeHeader: value with leading ws\n\n") + def test_whitespace_header(self): + self.assertEqual(Header(' ').encode(), ' ') + # Test RFC 2231 header parameters (en/de)coding |