mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
add test for #20251
This commit is contained in:
parent
a677d7628b
commit
bd1d12e61b
1 changed files with 7 additions and 0 deletions
|
|
@ -4546,6 +4546,13 @@ class BufferIOTest(SocketConnectedTest):
|
||||||
def _testRecvFromIntoSmallBuffer(self):
|
def _testRecvFromIntoSmallBuffer(self):
|
||||||
self.serv_conn.send(MSG*2048)
|
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_STYPE = 2000
|
||||||
TIPC_LOWER = 200
|
TIPC_LOWER = 200
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue