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

pypy.module._socket.test.apptest_socket:test_create_qipcrtr

def test_create_qipcrtr():
        import _socket
        if not hasattr(_socket, 'AF_QIPCRTR'):
            pytest.skip('No AF_QIPCRTR on this platform')
        try:
>           sock = _socket.socket(_socket.AF_QIPCRTR, _socket.SOCK_DGRAM)
E           OSError: [Errno 97] Address family not supported by protocol

../build/pypy/module/_socket/test/apptest_socket.py:887: OSError

During handling of the above exception, another exception occurred:

    def test_create_qipcrtr():
        import _socket
        if not hasattr(_socket, 'AF_QIPCRTR'):
            pytest.skip('No AF_QIPCRTR on this platform')
        try:
            sock = _socket.socket(_socket.AF_QIPCRTR, _socket.SOCK_DGRAM)
            assert sock.getsockname()[1] == 0
            sock.bind((sock.getsockname()[0], 0))
            assert sock.getsockname()[1] != 0
        finally:
>           sock.close()
E           UnboundLocalError: local variable 'sock' referenced before assignment

../build/pypy/module/_socket/test/apptest_socket.py:892: UnboundLocalError
builder: pypy-c-jit-linux-aarch64 build #2991+
test: pypy.module._socket.test.apptest_socket:test_create_qipcrtr