summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_socket_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py
index fb840561b1..fc9d09fe4b 100644
--- a/Lib/test/test_socket_ssl.py
+++ b/Lib/test/test_socket_ssl.py
@@ -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")