]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40121: Fix exception type in test (GH-19267)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 1 Apr 2020 13:02:55 +0000 (06:02 -0700)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2020 13:02:55 +0000 (06:02 -0700)
(cherry picked from commit 3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699)

Co-authored-by: Steve Dower <steve.dower@python.org>
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()