-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Conversation
8da6ecf
to
a8b011d
Compare
a8b011d
to
27dab4e
Compare
@@ -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,) |
There was a problem hiding this comment.
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 Report
@@ 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
Continue to review full report at Codecov.
|
#4299 makes this obsolete |
#4299 is for features, this is for master. (the issue is really annoying when you run into it, and should be fixed already) |
Fixes #3554
Ref: #3560
Ref: #3562