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 CallInfo.__repr__ for unfinished call #4381

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Nov 13, 2018

Fixes #3554
Ref: #3560
Ref: #3562

@@ -224,7 +224,8 @@ def __repr__(self):
if self.excinfo:
status = "exception: %s" % str(self.excinfo.value)
else:
status = "result: %r" % (self.result,)
result = getattr(self, "result", "<NOTSET>")
status = "result: %r" % (result,)
Copy link
Contributor Author

@blueyed blueyed Nov 13, 2018

Choose a reason for hiding this comment

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

@RonnyPfannschmidt
I think compat.NOTSET is not needed here?!
(as outlined in #3560 (comment))

@codecov
Copy link

codecov bot commented Nov 13, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4381      +/-   ##
=========================================
+ Coverage   95.88%   95.9%   +0.02%     
=========================================
  Files         111     111              
  Lines       24928   24938      +10     
  Branches     2431    2431              
=========================================
+ Hits        23901   23916      +15     
+ Misses        726     724       -2     
+ Partials      301     298       -3
Flag Coverage Δ
#docs 29.65% <0%> (+0.06%) ⬆️
#doctesting 29.65% <0%> (+0.06%) ⬆️
#linting 29.65% <0%> (+0.06%) ⬆️
#linux 95.73% <100%> (+0.02%) ⬆️
#nobyte 92.33% <100%> (ø) ⬆️
#numpy 93.12% <100%> (+0.01%) ⬆️
#pexpect 41.77% <18.18%> (-0.02%) ⬇️
#py27 94.04% <100%> (+0.02%) ⬆️
#py34 92.15% <100%> (+0.06%) ⬆️
#py35 92.16% <100%> (+0.06%) ⬆️
#py36 92.18% <100%> (+0.06%) ⬆️
#py37 94.1% <100%> (+0.02%) ⬆️
#trial 93.12% <100%> (+0.01%) ⬆️
#windows 94.09% <100%> (ø) ⬆️
#xdist 93.92% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/_pytest/runner.py 96.92% <100%> (+0.01%) ⬆️
testing/test_runner.py 96.94% <100%> (+0.06%) ⬆️
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 243d898...27dab4e. Read the comment docs.

@RonnyPfannschmidt
Copy link
Member

#4299 makes this obsolete

@blueyed
Copy link
Contributor Author

blueyed commented Nov 13, 2018

#4299 is for features, this is for master.

(the issue is really annoying when you run into it, and should be fixed already)

@blueyed blueyed merged commit b7863a5 into pytest-dev:master Nov 13, 2018
@blueyed blueyed deleted the callinfo-repr branch November 13, 2018 17:14
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