Skip to content

Bring coverage back to 100% #2167

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

Merged
merged 1 commit into from
Mar 8, 2021
Merged

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Mar 8, 2021

All calls to reraise() are in branches where value is truthy, so we can't reach that code. (I don't explain why this only showed up in coverage when we... added types to reraise, though.)

It seemed better than testing a case that we never hit in real code. (I guess that not using reraise at all would be better, but that seems difficult to achieve.)

All calls to reraise() are in branches where value is truthy, so we
can't reach that code.
@codecov
Copy link

codecov bot commented Mar 8, 2021

Codecov Report

Merging #2167 (b4b219f) into main (dc6284c) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #2167      +/-   ##
===========================================
+ Coverage   99.95%   100.00%   +0.04%     
===========================================
  Files          25        25              
  Lines        2221      2219       -2     
===========================================
- Hits         2220      2219       -1     
+ Misses          1         0       -1     
Impacted Files Coverage Δ
src/urllib3/util/util.py 100.00% <ø> (+5.00%) ⬆️

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 dc6284c...70728c3. Read the comment docs.

@pquentin
Copy link
Member Author

pquentin commented Mar 8, 2021

The coverage is back to 100%, and the CI failure is #2171

Copy link
Member

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

LGTM

@sethmlarson sethmlarson merged commit e9171e8 into urllib3:main Mar 8, 2021
@pquentin pquentin deleted the coverage-100 branch September 24, 2021 09:18
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