From: Steve Dower Date: Wed, 1 Apr 2020 08:38:26 +0000 (+0100) Subject: bpo-40121: Fix exception type in test (GH-19267) X-Git-Tag: v3.9.0a6~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699;p=thirdparty%2FPython%2Fcpython.git bpo-40121: Fix exception type in test (GH-19267) --- diff --git a/Lib/test/audit-tests.py b/Lib/test/audit-tests.py index dda52a5a518f..b90c4b8f7579 100644 --- a/Lib/test/audit-tests.py +++ b/Lib/test/audit-tests.py @@ -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()