Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assertion rewriting involving Starred + side-effects #4414

Merged
merged 1 commit into from
Nov 18, 2018
Merged

Fix assertion rewriting involving Starred + side-effects #4414

merged 1 commit into from
Nov 18, 2018

Conversation

asottile
Copy link
Member

Resolves #4412

@codecov
Copy link

codecov bot commented Nov 17, 2018

Codecov Report

Merging #4414 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4414      +/-   ##
==========================================
+ Coverage   95.89%   95.92%   +0.02%     
==========================================
  Files         111      111              
  Lines       25002    25006       +4     
  Branches     2438     2438              
==========================================
+ Hits        23975    23986      +11     
+ Misses        726      723       -3     
+ Partials      301      297       -4
Flag Coverage Δ
#docs 29.92% <0%> (+0.09%) ⬆️
#doctesting 29.92% <0%> (+0.09%) ⬆️
#linting 29.92% <0%> (+0.09%) ⬆️
#linux 95.74% <100%> (+0.02%) ⬆️
#nobyte 92.34% <20%> (-0.02%) ⬇️
#numpy 93.12% <20%> (-0.03%) ⬇️
#pexpect 41.73% <0%> (-0.01%) ⬇️
#py27 94.04% <20%> (ø) ⬆️
#py34 92.16% <20%> (+0.05%) ⬆️
#py35 92.18% <100%> (+0.06%) ⬆️
#py36 92.2% <100%> (+0.06%) ⬆️
#py37 94.12% <100%> (+0.02%) ⬆️
#trial 93.12% <20%> (-0.03%) ⬇️
#windows 94.12% <100%> (ø) ⬆️
#xdist 93.94% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/_pytest/assertion/rewrite.py 95.7% <100%> (ø) ⬆️
testing/test_assertrewrite.py 83.46% <100%> (+0.07%) ⬆️
src/_pytest/capture.py 93.87% <0%> (+0.45%) ⬆️
src/_pytest/terminal.py 93.02% <0%> (+0.85%) ⬆️

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 4c9cde7...690a63b. Read the comment docs.

@asottile asottile merged commit 10cdae8 into pytest-dev:master Nov 18, 2018
@asottile asottile deleted the starred_with_side_effect branch November 18, 2018 00:17
@RonnyPfannschmidt
Copy link
Member

@asottile great job, that one must have been very puzzling to find, the original "wrong" code looks so "right"

@asottile
Copy link
Member Author

<3 I've spent way more than my fair share staring at ast.NodeVisitor / ast.NodeTransformers 😆

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.

3 participants