Skip to content

Commit d51a3bb

Browse files
authored
Fix test_truesendall failure on MacOS (#289)
Closes: #287 Signed-off-by: Ihar Hrachyshka <[email protected]>
1 parent 3c7eec6 commit d51a3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mocket/socket.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def getblocking(self) -> bool:
158158
return self.gettimeout() is None
159159

160160
def getsockname(self) -> _RetAddress:
161-
return true_gethostbyname(self._address[0]), self._address[1]
161+
return socket.gethostbyname(self._address[0]), self._address[1]
162162

163163
def connect(self, address: Address) -> None:
164164
self._address = self._host, self._port = address

0 commit comments

Comments
 (0)