Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/module/_socket/test/apptest_socket.py::test_socket_connect_ex

def test_socket_connect_ex():
        import _socket
        s = _socket.socket(_socket.AF_INET, _socket.SOCK_STREAM, 0)
        # The following might fail if the DNS redirects failed requests to a
        # catch-all address (i.e. opendns).
        # Make sure we get an app-level error, not an interp one.
        try:
            pytest.raises(_socket.gaierror, s.connect_ex, ("wrong.invalid", 80))
        finally:
>           s.close()
E           (application-level) OSError: [Errno 9] Bad file descriptor

module/_socket/test/apptest_socket.py:137: OSError
builder: own-linux-x86-64 build #10964+
test: pypy/module/_socket/test/apptest_socket.py::test_socket_connect_ex