Ran
|
Files
16
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/zopefoundation/zope.sendmail/commit/<a class=hub.com/zopefoundation/zope.sendmail/commit/b841d80d7478ab50100e71bba1ae057d929e2b13">b841d80d7<a href="https://github.com/zopefoundation/zope.sendmail/commit/b841d80d7478ab50100e71bba1ae057d929e2b13">">`Maildir.newMessage` returns a MaildirMessageWriter with a file handle opened in text mode, see https://github.com/zopefoundation/zope.sendmail/blob/</a><a class="double-link" href="https://github.com/zopefoundation/zope.sendmail/commit/<a class="double-link" href="https://git"><a class=</a>hub.com/zopefoundation/zope.sendmail/commit/<a class=hub.com/zopefoundation/zope.sendmail/commit/2ee8b0a454ff484335e6b65b9d46a695309a2b2f">2ee8b0a45">2ee8b0a45</a><a href="https://github.com/zopefoundation/zope.sendmail/commit/b841d80d7478ab50100e71bba1ae057d929e2b13">/src/zope/sendmail/maildir.py#L110 (mode is 'w' not 'wb') But `MaildirMessageWriter.write` writes bytes to this file handle, see https://github.com/zopefoundation/zope.sendmail/blob/2ee8b0a454ff484335e6b65b9d46a695309a2b2f/src/zope/sendmail/maildir.py#L131-L132 This commit changes the implementation to use bytes for Python 3. The change is necessary to get the tests in zopefoundation/Products.MailHost#15 green. Closes #23. (Which had a different implementation.)</a>
1688 of 1688 relevant lines covered (100.0%)
1.0 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|