Commit 3cdb0087 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[805] Python accept returns tuple

The socket and an address. We don't care about the address, but we still
need to unpack the socket out.
parent 9f776b72
......@@ -914,7 +914,7 @@ class BoB:
Accept a socket from the unix domain socket server and put it to the
others we care about.
"""
socket = self._srv_socket.accept()
(socket, conn) = self._srv_socket.accept()
self._unix_sockets[socket.fileno()] = (socket, b'')
def _socket_data(self, socket_fileno):
......
......@@ -1235,7 +1235,7 @@ class SocketSrvTest(unittest.TestCase):
return self.__fileno
def accept(self):
return self.__class__(self.__owner, 13)
return (self.__class__(self.__owner, 13), "/path/to/socket")
def recv(self, bufsize, flags=0):
self.__owner.assertEqual(1, bufsize)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment