mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Fix typo of exception name.
This commit is contained in:
parent
bb93f4bb0d
commit
115ecb9211
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ def test_timeout():
|
|||
for. If this message is seen often, test_timeout should be changed to
|
||||
use a more reliable address.""" % (ADDR,)
|
||||
return
|
||||
except socket.err, exc: # In case connection is refused.
|
||||
except socket.error, exc: # In case connection is refused.
|
||||
if (isinstance(exc.message, tuple) and
|
||||
exc.message[0] == errno.ECONNREFUSED):
|
||||
raise test_support.TestSkipped("test socket connection refused")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue