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

mtreinish / stestr
69%
master: 68%

Build:
Build:
LAST BUILD BRANCH: gha-ci
DEFAULT BRANCH: master
Repo Added 22 Dec 2016 05:02AM UTC
Files 33
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

LAST BUILD ON BRANCH fix-encoding-py3
branch: fix-encoding-py3
CHANGE BRANCH
x
Reset
  • fix-encoding-py3
  • 1.1.0
  • 2.0.0
  • 2.1.0
  • 2.1.1
  • 2.2.0
  • 2.3.0
  • 2.3.1
  • 2.4.0
  • 2.5.0
  • 2.5.1
  • 2.6.0
  • 3.0.0
  • 3.0.1
  • 3.1.0
  • add-3.8-support
  • add-abbreivate
  • add-all-attachments
  • add-azure-py38
  • add-code-of-conduct-1
  • add-contributing-to-readme
  • add-license-metadata-to-package
  • add-mailmap
  • add-pdb-mode
  • add-py2-drop-notice
  • add-py37
  • add-py39-support
  • add-repo-metadata
  • add-return-code-tests-from-func
  • add-subunit-output-check
  • attempt-cinder-fix
  • azure-pipelines
  • cap-pbr
  • cap-pip
  • change-readme-title
  • cleanup-failing-man-section
  • cli-man
  • debug-by-default
  • deprecate-partial
  • doc-fixes
  • drop-reno-docs
  • drop-universal-wheel-travis
  • dynamic-schedule
  • fix-docs
  • fix-invalid-concurrency-value-error
  • fix-load-reported-time
  • fix-log-0-error
  • fix-man-link
  • fix-metadata-pbr
  • fix-min-failure
  • fix-nonetype-timestamps
  • fix-partial-load-help
  • fix-py3-import-error-formatting
  • fix-run-desc
  • fix-run-subunit
  • fix-serial-selection
  • fix-six-cast
  • fix-stdin-load
  • fix-subunit-stdout
  • fix-test-bisect
  • fix-trove-classifiers
  • fix-unxsuccess
  • fix-warning-message
  • fix-whitelist-arg
  • gha-ci
  • ignore-rm-errors
  • invalid-regex-error
  • irc-readme
  • limit-testing
  • man-page-building
  • man-page-generation
  • manpage-config-fixes
  • master
  • missing-docs
  • only-use-stdlib-runner-py35
  • prep-stestr-3.0.0
  • pytest-style-paths
  • really-uncap-pbr
  • release-automation
  • remove-python2-support
  • remove-windows-skips
  • revert-166-cap-pip
  • revert-173-uncap-pip
  • rework-attachment-option-logic
  • rework-readme-overview
  • subunit-flag-doc-update
  • subunit_run_vendor
  • supress-stdout-attach
  • templates
  • testr-equiv-string-code
  • uncap-pip
  • update-hacking
  • update-license
  • update-package-summary
  • update-readme
  • update-travis
  • use-context-managers
  • use-testtools_wasSuccessful
  • user-config
  • user-config-functional-tests

pending completion
1130

Pull #272

travis-ci

web-flow
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
Pull Request #272: Stop encoding attachments text

472 of 837 branches covered (56.39%)

1760 of 2566 relevant lines covered (68.59%)

0.69 hits per line

Relevant lines Covered
Build:
Build:
2566 RELEVANT LINES 1760 COVERED LINES
0.69 HITS PER LINE
Source Files on fix-encoding-py3
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1130 fix-encoding-py3 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 ... Pull #272 08 Sep 2019 10:33PM UTC web-flow travis-ci pending completion  
1129 fix-encoding-py3 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 ... push 08 Sep 2019 10:29PM UTC mtreinish travis-ci pending completion  
1128 fix-encoding-py3 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 ... push 08 Sep 2019 10:27PM UTC mtreinish travis-ci pending completion  
See All Builds (966)
  • Repo on GitHub
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