]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40121: Fix exception type in test (GH-19267)
authorSteve Dower <steve.dower@python.org>
Wed, 1 Apr 2020 08:38:26 +0000 (09:38 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2020 08:38:26 +0000 (09:38 +0100)
Lib/test/audit-tests.py

index dda52a5a518f6add37302425f51e300d5d4974f4..b90c4b8f75794d39a61da68d065437c380553414 100644 (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()