Skip to content

Use unicode/bytes literals instead of calls#4309

Merged
RonnyPfannschmidt merged 1 commit into
pytest-dev:masterfrom
asottile:less_unicode_hax
Nov 5, 2018
Merged

Use unicode/bytes literals instead of calls#4309
RonnyPfannschmidt merged 1 commit into
pytest-dev:masterfrom
asottile:less_unicode_hax

Conversation

@asottile

@asottile asottile commented Nov 5, 2018

Copy link
Copy Markdown
Member

No description provided.

@RonnyPfannschmidt

Copy link
Copy Markdown
Member

oh this is a superset of #4305

@asottile

asottile commented Nov 5, 2018

Copy link
Copy Markdown
Member Author

@RonnyPfannschmidt more a continuation -- I was inspired by your change to try and fix more of it :)

for i in range(min(len(left), len(right))):
if left[i] != right[i]:
explanation += [u("At index %s diff: %r != %r") % (i, left[i], right[i])]
explanation += [u"At index %s diff: %r != %r" % (i, left[i], right[i])]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the diff i noted that we should use saferepr here, perhaps a nice followup

@RonnyPfannschmidt

Copy link
Copy Markdown
Member

great job at pulling in the rest 👍

@codecov

codecov Bot commented Nov 5, 2018

Copy link
Copy Markdown

Codecov Report

Merging #4309 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4309      +/-   ##
==========================================
- Coverage   95.84%   95.84%   -0.01%     
==========================================
  Files         111      111              
  Lines       24871    24866       -5     
  Branches     2424     2424              
==========================================
- Hits        23837    23832       -5     
  Misses        737      737              
  Partials      297      297
Flag Coverage Δ
#docs 28.91% <82.75%> (-0.01%) ⬇️
#doctesting 28.91% <82.75%> (-0.01%) ⬇️
#linting 28.91% <82.75%> (-0.01%) ⬇️
#linux 95.62% <93.1%> (-0.01%) ⬇️
#nobyte 91.84% <93.1%> (+0.01%) ⬆️
#numpy 93.02% <93.1%> (+0.01%) ⬆️
#pexpect 41.69% <34.48%> (ø) ⬆️
#py27 94.02% <93.1%> (+0.01%) ⬆️
#py34 92.14% <82.75%> (+0.05%) ⬆️
#py35 92.15% <82.75%> (+0.05%) ⬆️
#py36 93.9% <82.75%> (-0.01%) ⬇️
#py37 92.2% <82.75%> (+0.05%) ⬆️
#trial 93.02% <93.1%> (+0.01%) ⬆️
#windows 93.96% <100%> (-0.01%) ⬇️
#xdist 93.72% <93.1%> (-0.01%) ⬇️
Impacted Files Coverage Δ
testing/test_assertion.py 97.11% <100%> (-0.02%) ⬇️
src/_pytest/assertion/util.py 98.11% <100%> (-0.02%) ⬇️
src/_pytest/capture.py 93.42% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db99633...a481984. Read the comment docs.

@RonnyPfannschmidt RonnyPfannschmidt merged commit e253852 into pytest-dev:master Nov 5, 2018
@asottile asottile deleted the less_unicode_hax branch November 5, 2018 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants