diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/socket_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/socket_test.py b/tests/socket_test.py index 740c2c3..181f9be 100644 --- a/tests/socket_test.py +++ b/tests/socket_test.py @@ -99,3 +99,11 @@ def test_error_is_timeout(): tests.check_is_timeout(e) else: assert False, 'No timeout, socket.error was not raised' + + +def test_connect_ex_success(): + # https://github.com/eventlet/eventlet/issues/696 + server = eventlet.listen(("127.0.0.1", 0)) + client = socket.socket() + result = client.connect_ex(server.getsockname()) + assert result == 0 |