diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-04-01 13:02:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 13:02:55 (GMT) |
commit | f971c8c0a0fbe1959843179e2811b047001125a0 (patch) | |
tree | 58f096690ae43d36176d1b6753e2d3f847a57eb1 | |
parent | 6acafee247849b39d65dd0d61c6e57a6ffabdc32 (diff) | |
download | cpython-f971c8c0a0fbe1959843179e2811b047001125a0.zip cpython-f971c8c0a0fbe1959843179e2811b047001125a0.tar.gz cpython-f971c8c0a0fbe1959843179e2811b047001125a0.tar.bz2 |
bpo-40121: Fix exception type in test (GH-19267)
(cherry picked from commit 3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699)
Co-authored-by: Steve Dower <steve.dower@python.org>
-rw-r--r-- | Lib/test/audit-tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/audit-tests.py b/Lib/test/audit-tests.py index dda52a5..b90c4b8 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() |