diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-01-13 18:30:13 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-01-13 18:30:13 (GMT) |
commit | 44fcaae90d485d8b853fe4d4fd5225d71ed9565c (patch) | |
tree | fb62659c71138e3b0dc0c17d04acdbc8bed0a22f /Lib/test/test_email | |
parent | f22fe0f5079779663ba3b0fbc261992c5ad3a08d (diff) | |
parent | 2313e15578aa864c7b995de996e4787169f7ca8d (diff) | |
download | cpython-44fcaae90d485d8b853fe4d4fd5225d71ed9565c.zip cpython-44fcaae90d485d8b853fe4d4fd5225d71ed9565c.tar.gz cpython-44fcaae90d485d8b853fe4d4fd5225d71ed9565c.tar.bz2 |
Merge #20206, #5803: more efficient algorithm that doesn't truncate output.
(No idea why test_tarfile is listed as changed...it isn't.)
Diffstat (limited to 'Lib/test/test_email')
-rw-r--r-- | Lib/test/test_email/test_email.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py index ded3562..acefb39 100644 --- a/Lib/test/test_email/test_email.py +++ b/Lib/test/test_email/test_email.py @@ -4246,6 +4246,11 @@ class TestQuopri(unittest.TestCase): def test_encode_one_line_eol(self): self._test_encode('hello\n', 'hello\r\n', eol='\r\n') + def test_encode_one_line_eol_after_non_ascii(self): + # issue 20206; see changeset 0cf700464177 for why the encode/decode. + self._test_encode('hello\u03c5\n'.encode('utf-8').decode('latin1'), + 'hello=CF=85\r\n', eol='\r\n') + def test_encode_one_space(self): self._test_encode(' ', '=20') |