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 #4386 - handle uninitialized exceptioninfo in repr/str #4444

Merged
merged 2 commits into from
Nov 23, 2018

Conversation

RonnyPfannschmidt
Copy link
Member

this is a backport of the fixing strategy from #4438

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Looks good, we just need a changelog entry. 😁

print(repr(excinfo))
import pprint

pprint.pprint(excinfo)
Copy link
Member

Choose a reason for hiding this comment

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

please add a comment explaining the strategy here

@codecov
Copy link

codecov bot commented Nov 22, 2018

Codecov Report

Merging #4444 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4444      +/-   ##
=========================================
+ Coverage    95.9%   95.9%   +<.01%     
=========================================
  Files         111     111              
  Lines       25027   25042      +15     
  Branches     2442    2442              
=========================================
+ Hits        24001   24016      +15     
  Misses        724     724              
  Partials      302     302
Flag Coverage Δ
#docs 30.14% <20%> (+0.07%) ⬆️
#doctesting 30.14% <20%> (+0.07%) ⬆️
#linting 30.14% <20%> (+0.07%) ⬆️
#linux 95.73% <100%> (ø) ⬆️
#nobyte 92.66% <100%> (+0.62%) ⬆️
#numpy 93.44% <100%> (+51.57%) ⬆️
#pexpect 41.83% <0%> (-0.04%) ⬇️
#py27 94.03% <100%> (+0.02%) ⬆️
#py34 92.17% <100%> (+0.19%) ⬆️
#py35 92.19% <100%> (+0.19%) ⬆️
#py36 92.21% <100%> (+0.06%) ⬆️
#py37 94.1% <100%> (ø) ⬆️
#trial 93.44% <100%> (+51.57%) ⬆️
#windows 94.11% <100%> (+0.54%) ⬆️
#xdist 93.97% <100%> (ø) ⬆️
Impacted Files Coverage Δ
testing/python/raises.py 93.6% <100%> (+0.49%) ⬆️
src/_pytest/_code/code.py 95.46% <100%> (+0.04%) ⬆️
src/_pytest/cacheprovider.py 97.02% <0%> (ø) ⬆️
src/_pytest/assertion/rewrite.py 95.7% <0%> (ø) ⬆️
src/_pytest/config/findpaths.py 94.84% <0%> (ø) ⬆️
src/_pytest/warnings.py 88.88% <0%> (ø) ⬆️

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 94d032a...9ae8429. Read the comment docs.

@RonnyPfannschmidt
Copy link
Member Author

done

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

fixnship

testing/python/raises.py Outdated Show resolved Hide resolved
@RonnyPfannschmidt RonnyPfannschmidt changed the title fix #4386 - handle uninitialized exceptioninfo in repr/str WIP: fix #4386 - handle uninitialized exceptioninfo in repr/str Nov 22, 2018
@nicoddemus
Copy link
Member

The title still says "WIP", anything missing?

@RonnyPfannschmidt RonnyPfannschmidt changed the title WIP: fix #4386 - handle uninitialized exceptioninfo in repr/str fix #4386 - handle uninitialized exceptioninfo in repr/str Nov 22, 2018
@RonnyPfannschmidt
Copy link
Member Author

@nicoddemus thanks for picking it up 👍

@nicoddemus nicoddemus merged commit 0b73d6d into pytest-dev:master Nov 23, 2018
@RonnyPfannschmidt RonnyPfannschmidt deleted the fix-4386-2 branch November 30, 2018 13:30
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