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

mtreinish / stestr / 1129 / 4
69%
master: 68%

Build:
Build:
LAST BUILD BRANCH: gha-ci
DEFAULT BRANCH: master
Ran 08 Sep 2019 10:29PM UTC
Files 33
Run time 2s
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

08 Sep 2019 10:25PM UTC coverage: 68.589% (-0.01%) from 68.601%
TOXENV=cover

push

travis-ci

mtreinish
Stop encoding attachments text

The attachments text in print_attachments() for the subunit_trace output
was encoding the text as utf8 for some reason which made the text of
type bytes. When bytes objects are printed by python 3 they're marked as
bytes by wrapping the text in b''. However this encode is unecessary (and
would likely break unicode characters) as just writing the str literals
for each line to the output stream works just fine. The encode() call was
added in [1] before stestr was started, and was just added for the case
of using LANG=C to set their locale to ASCII C. This was also before the
adoption of PEP 538 [2] which makes python use unicode even if LANG=C is
set. So removing the encode for supporting that use case shouldn't
matter anymore.

Fixes #243

[1] https://review.opendev.org/#/c/229527/
[2] https://www.python.org/dev/peps/pep-0538

472 of 837 branches covered (56.39%)

1760 of 2566 relevant lines covered (68.59%)

0.69 hits per line

Source Files on job 1129.4 (TOXENV=cover)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1024
  • Travis Job 1129.4
  • 4f65a4d3 on github
  • Prev Job for TOXENV=cover on fix-encoding-py3 (#1128.4)
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

© 2026 Coveralls, Inc