diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index cce412a38cd..14e7e1518ea 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -4691,6 +4691,13 @@ def testRecvFromIntoSmallBuffer(self): def _testRecvFromIntoSmallBuffer(self): self.serv_conn.send(MSG*2048) + def testRecvFromIntoEmptyBuffer(self): + buf = bytearray() + self.cli_conn.recvfrom_into(buf) + self.cli_conn.recvfrom_into(buf, 0) + + _testRecvFromIntoEmptyBuffer = _testRecvFromIntoArray + TIPC_STYPE = 2000 TIPC_LOWER = 200