bpo-40121: Fix exception type in test (GH-19267)

(cherry picked from commit 3ef4a7e5a7)

Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2020-04-01 06:02:55 -07:00 committed by GitHub
parent 6acafee247
commit f971c8c0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ def test_socket():
try:
# Don't care if this fails, we just want the audit message
sock.bind(('127.0.0.1', 8080))
except error:
except Exception:
pass
finally:
sock.close()