[Python-checkins] bpo-40121: Fix exception type in test (GH-19267)
Miss Islington (bot)
webhook-mailer at python.org
Wed Apr 1 09:03:04 EDT 2020
https://github.com/python/cpython/commit/f971c8c0a0fbe1959843179e2811b047001125a0
commit: f971c8c0a0fbe1959843179e2811b047001125a0
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-04-01T06:02:55-07:00
summary:
bpo-40121: Fix exception type in test (GH-19267)
(cherry picked from commit 3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699)
Co-authored-by: Steve Dower <steve.dower at python.org>
files:
M Lib/test/audit-tests.py
diff --git a/Lib/test/audit-tests.py b/Lib/test/audit-tests.py
index dda52a5a518f6..b90c4b8f75794 100644
--- a/Lib/test/audit-tests.py
+++ b/Lib/test/audit-tests.py
@@ -343,7 +343,7 @@ def hook(event, args):
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()
More information about the Python-checkins
mailing list