diff options
author | Steve Dower <steve.dower@python.org> | 2020-04-01 08:38:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 08:38:26 (GMT) |
commit | 3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699 (patch) | |
tree | 5fa981badea46d74e5d4ca623adee3ea27b8b177 /Lib | |
parent | 6eb9619c88612565b424be14196a8adae6d51978 (diff) | |
download | cpython-3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699.zip cpython-3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699.tar.gz cpython-3ef4a7e5a7c29e17d5152d1fa6ceeb1fee269699.tar.bz2 |
bpo-40121: Fix exception type in test (GH-19267)
Diffstat (limited to 'Lib')
-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() |