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

Prefer pytest.raises to self.fail #1712

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

pquentin
Copy link
Member

It reuses a standard mechanism, is less verbose and avoids including
code that is never executed.

It reuses a standard mechanism, is less verbose and avoids including
code that is never executed.
@codecov-io
Copy link

codecov-io commented Oct 28, 2019

Codecov Report

Merging #1712 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1712   +/-   ##
=======================================
  Coverage   99.65%   99.65%           
=======================================
  Files          22       22           
  Lines        2006     2006           
=======================================
  Hits         1999     1999           
  Misses          7        7

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 79e81f9...d0521c3. Read the comment docs.

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.

This is definitely better, thanks @pquentin!

@sethmlarson sethmlarson merged commit 42a3ef3 into urllib3:master Oct 29, 2019
@pquentin pquentin deleted the replace-self-fail branch October 30, 2019 06:53
Dobatymo pushed a commit to Dobatymo/urllib3 that referenced this pull request Mar 16, 2022
It reuses a standard mechanism, is less verbose and avoids including
code that is never executed.
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