diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 23:10:48 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 23:10:48 +0200 |
commit | 9d4b88aabc07af29601775a537b476c959f5f11b (patch) | |
tree | d631e3e433725eccfc8343d6d08f88d7f947f331 /Lib/test/test_kqueue.py | |
parent | 8a2430b27c2140ed1063a623fdeef7544a4738d4 (diff) | |
download | cpython-9d4b88aabc07af29601775a537b476c959f5f11b.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.py | 2 |
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") |