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

Rationalize generic exception names #701

Merged
merged 3 commits into from
Sep 30, 2018

Conversation

njsmith
Copy link
Member

@njsmith njsmith commented Sep 30, 2018

  • Rename BrokenStreamError to BrokenResourceError
  • Rename ResourceBusyError to BusyResourceError

Fixes gh-620 (and see there for the rationale).

- Rename BrokenStreamError to BrokenResourceError
- Rename ResourceBusyError to BusyResourceError

Fixes python-triogh-620 (and see there for the rationale).
@njsmith njsmith force-pushed the rationalize-generic-exceptions branch from bc9efba to 016a508 Compare September 30, 2018 06:27
@codecov
Copy link

codecov bot commented Sep 30, 2018

Codecov Report

Merging #701 into master will increase coverage by <.01%.
The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #701      +/-   ##
==========================================
+ Coverage   83.97%   83.97%   +<.01%     
==========================================
  Files          94       94              
  Lines       13006    13001       -5     
  Branches      783      783              
==========================================
- Hits        10922    10918       -4     
+ Misses       2062     2061       -1     
  Partials       22       22
Impacted Files Coverage Δ
trio/_core/__init__.py 100% <ø> (ø) ⬆️
trio/_highlevel_generic.py 96.15% <ø> (+13.8%) ⬆️
trio/_abc.py 89.09% <ø> (ø) ⬆️
trio/tests/test_signals.py 92.36% <100%> (ø) ⬆️
trio/_ssl.py 74.61% <100%> (ø) ⬆️
trio/_subprocess/unix_pipes.py 93.97% <100%> (ø) ⬆️
trio/tests/test_highlevel_ssl_helpers.py 52.83% <100%> (ø) ⬆️
trio/tests/test_ssl.py 85.97% <100%> (ø) ⬆️
trio/_highlevel_socket.py 72.43% <100%> (-0.18%) ⬇️
trio/tests/test_testing.py 95.07% <100%> (ø) ⬆️
... and 14 more

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 c6dcfdd...81f715a. Read the comment docs.

@njsmith
Copy link
Member Author

njsmith commented Sep 30, 2018

Need to rerun that travis test after #702 is merged, but otherwise I think this is good to go.

@pquentin pquentin closed this Sep 30, 2018
@pquentin pquentin reopened this Sep 30, 2018
@pquentin
Copy link
Member

Do we need a news entry?

@njsmith
Copy link
Member Author

njsmith commented Sep 30, 2018

Whoops, nice catch! I wrote one, but forgot to git add...

@pquentin
Copy link
Member

Yay, #605 proved useful!

Thanks for this PR, @njsmith. Merging.

@pquentin pquentin merged commit 0a642d6 into python-trio:master Sep 30, 2018
@njsmith njsmith deleted the rationalize-generic-exceptions branch September 30, 2018 23:47
@njsmith
Copy link
Member Author

njsmith commented Sep 30, 2018

Yay, #605 proved useful!

Yeah, it definitely saved me there :-)

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