[issue4535] Build / Test Py3K failed on Ubuntu 8.10
Ron DuPlain added the comment: For what it's worth, I ran these tests on Ubuntu 8.10 with Python trunk (2.7) r70765 (svn). All tests passed. Output is attached (cleaned out ref counts). --rduplain -- nosy: +rduplain Added file: http://bugs.python.org/file13503/trunk.r70765.debug-ubuntu-8.10.out ___ Python tracker <http://bugs.python.org/issue4535> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5430] imaplib: must not replace LF or CR by CRLF in literals
Ron DuPlain added the comment: It looks like the IMAP4.append method is responsible for the CRLF substitution (trunk/Lib/imaplib.py). # defined near top of module: MapCRLF = re.compile(r'\r\n|\r|\n') # in append method: self.literal = MapCRLF.sub(CRLF, message) I'll work on a test for it this evening. -Ron -- nosy: +ron.duplain ___ Python tracker <http://bugs.python.org/issue5430> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5430] imaplib: must not replace LF or CR by CRLF in literals
Ron DuPlain 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 <http://bugs.python.org/issue5430> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com