• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / zope.sendmail / 92
99%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2019 10:05AM UTC
Jobs 7
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
92

push

travis-ci

web-flow
<a href="https://github.com/zopefoundation/zope.sendmail/commit/<a class=hub.com/zopefoundation/zope.sendmail/commit/d1fb3c7baa5f1f48d0d0ae217e2f2777fa16d85d">d1fb3c7ba<a href="https://github.com/zopefoundation/zope.sendmail/commit/d1fb3c7baa5f1f48d0d0ae217e2f2777fa16d85d">&quot;&gt;Fix text/bytes issue in MailDir for Python 3 (#24)

* `Maildir.newMessage` returns a MaildirMessageWriter with a file handle opened
in text mode, see
https://github.com/zopefoundation/zope.sendmail/blob/&lt;/a&gt;&lt;a class=&quot;double-link&quot; href=&quot;https://github.com/zopefoundation/zope.sendmail/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;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/d1fb3c7baa5f1f48d0d0ae217e2f2777fa16d85d">/src/zope/sendmail/maildir.py#L110
(mode is &#39;w&#39; not &#39;wb&#39;)

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.</a>

1683 of 1683 relevant lines covered (100.0%)

7.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 92.1 03 Apr 2019 10:05AM UTC 0
100.0
Travis Job 92.1
2 92.2 03 Apr 2019 10:05AM UTC 0
100.0
Travis Job 92.2
3 92.3 03 Apr 2019 10:05AM UTC 0
100.0
Travis Job 92.3
4 92.4 03 Apr 2019 10:05AM UTC 0
100.0
Travis Job 92.4
5 92.5 03 Apr 2019 10:06AM UTC 0
100.0
Travis Job 92.5
6 92.6 03 Apr 2019 10:06AM UTC 0
100.0
Travis Job 92.6
7 92.7 03 Apr 2019 10:06AM UTC 0
100.0
Travis Job 92.7
Source Files on build 92
  • List 0
  • Changed 5
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #92
  • d1fb3c7b on github
  • Prev Build on master (#83)
  • Next Build on master (#95)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc