summaryrefslogtreecommitdiff
path: root/Lib/test/test_kqueue.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 23:10:48 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 23:10:48 +0200
commit0832af6628ca5ac02d0226899725297dd508470b (patch)
treefc4e7d05d9c6f51eb97f3e8abbcab2b226330b94 /Lib/test/test_kqueue.py
parentad28c7f9dad791567afa0624acfb3ba430851965 (diff)
downloadcpython-git-0832af6628ca5ac02d0226899725297dd508470b.tar.gz
Issue #16717: get rid of socket.error, replace with OSError
Diffstat (limited to 'Lib/test/test_kqueue.py')
-rw-r--r--Lib/test/test_kqueue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_kqueue.py b/Lib/test/test_kqueue.py
index 4e9301307c..6312ddd83e 100644
--- a/Lib/test/test_kqueue.py
+++ b/Lib/test/test_kqueue.py
@@ -94,7 +94,7 @@ class TestKQueue(unittest.TestCase):
client.setblocking(False)
try:
client.connect(('127.0.0.1', serverSocket.getsockname()[1]))
- except socket.error as e:
+ except OSError as e:
self.assertEqual(e.args[0], errno.EINPROGRESS)
else:
#raise AssertionError("Connect should have raised EINPROGRESS")