mirror of https://github.com/python/cpython
bpo-40121: Fix exception type in test (GH-19267)
This commit is contained in:
parent
6eb9619c88
commit
3ef4a7e5a7
|
@ -343,7 +343,7 @@ def test_socket():
|
||||||
try:
|
try:
|
||||||
# Don't care if this fails, we just want the audit message
|
# Don't care if this fails, we just want the audit message
|
||||||
sock.bind(('127.0.0.1', 8080))
|
sock.bind(('127.0.0.1', 8080))
|
||||||
except error:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
sock.close()
|
sock.close()
|
||||||
|
|
Loading…
Reference in New Issue