bpo-40121: Fix exception type in test#19267
Conversation
|
Anyone can feel free to merge this once CI passes. |
| # Don't care if this fails, we just want the audit message | ||
| sock.bind(('127.0.0.1', 8080)) | ||
| except error: | ||
| except Exception: |
There was a problem hiding this comment.
You may be more specific and only catch OSError.
There was a problem hiding this comment.
It's only a test, and I'd rather not risk breaking buildbots over it.
|
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
GH-19275 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit 3ef4a7e) Co-authored-by: Steve Dower <[email protected]>
|
|
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
(cherry picked from commit 3ef4a7e) Co-authored-by: Steve Dower <[email protected]>
|
GH-19276 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit 3ef4a7e) Co-authored-by: Steve Dower <[email protected]>
https://bugs.python.org/issue40121