[issue5430] imaplib: must not replace LF or CR by CRLF in literals

Ron DuPlain report at bugs.python.org
Sun Apr 26 22:21:13 CEST 2009


Ron DuPlain <ron.duplain at gmail.com> added the comment:

Module imaplib has pretty sparse test code.  There is only 1 test case,
for imaplib.Time2Internaldate.
trunk/Lib/test/test_imaplib.py

The attached patch tests for LF, CR preservation with regard to the
IMAP4.append method, but more testing is necessary to make sure LF, CR
are preserved in IMAP literals throughout imaplib and that the
respective fix doesn't break anything.  Mock IMAP interaction may be the
way to go for better test cases.  Is anyone working on expanding imaplib
test coverage?

-Ron

----------
keywords: +patch
versions: +Python 2.7
Added file: http://bugs.python.org/file13789/test_imaplib_cr_lf.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5430>
_______________________________________


More information about the Python-bugs-list mailing list