[pypy-issue] [issue987] AppTestSocket.test_unix_socket_connect can fail when TMPDIR is long

Stefano Rivera tracker at bugs.pypy.org
Sat Jan 7 20:23:14 CET 2012


New submission from Stefano Rivera <pypy at rivera.za.net>:

module/_socket/test/test_sock_app.py:

    def test_unix_socket_connect(self):
        import _socket, os
        if not hasattr(_socket, 'AF_UNIX'):
            skip('AF_UNIX not supported.')
        sockpath = os.path.join(self.udir, 'app_test_unix_socket_connect')
    
        serversock = _socket.socket(_socket.AF_UNIX)
>       serversock.bind(sockpath)
E       error: AF_UNIX path too long

module/_socket/test/test_sock_app.py:535: error

Patch attached.

----------
files: test_unix_socket_connect.patch
messages: 3655
nosy: pypy-issue, stefanor
priority: bug
status: unread
title: AppTestSocket.test_unix_socket_connect can fail when TMPDIR is long

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue987>
________________________________________


More information about the pypy-issue mailing list