[Python-checkins] cpython (3.3): add test for #20251

benjamin.peterson python-checkins at python.org
Tue Jan 14 06:29:16 CET 2014


http://hg.python.org/cpython/rev/6ea64dcfb5e2
changeset: 88466:6ea64dcfb5e2
branch: 3.3
parent: 88462:8712efe02dcc
user: Benjamin Peterson <benjamin at python.org>
date: Tue Jan 14 00:27:42 2014 -0500
summary:
 add test for #20251
files:
 Lib/test/test_socket.py | 7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -4546,6 +4546,13 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /