Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_kqueue.py @ 80933:50d19c2fac82
Issue #16717: get rid of socket.error, replace with OSError
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Tue, 18 Dec 2012 23:10:48 +0200 |
| parents | fdb98a7ef9be |
| children | 0c9415ddf403 |
line wrap: on
line diff
--- a/Lib/test/test_kqueue.py Tue Dec 18 22:02:39 2012 +0200 +++ b/Lib/test/test_kqueue.py Tue Dec 18 23:10:48 2012 +0200 @@ -94,7 +94,7 @@ 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")
