diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-01-14 04:12:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-01-14 04:12:55 (GMT) |
commit | 5688222907583833837f2f0e92205f17fb92d436 (patch) | |
tree | 97f45bbb2e1003b76bfe4edb05a61b5a28220cd5 /Lib/test/test_socket.py | |
parent | 80602e0e1b543d9f1e08fced125b0ea6c67cdf4b (diff) | |
parent | fbf648ebba32bbc5aa571a4b09e2062a65fd2492 (diff) | |
download | cpython-5688222907583833837f2f0e92205f17fb92d436.zip cpython-5688222907583833837f2f0e92205f17fb92d436.tar.gz cpython-5688222907583833837f2f0e92205f17fb92d436.tar.bz2 |
merge 3.2 (#20246)
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index fc04aba..2df6dd6 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -4538,6 +4538,14 @@ class BufferIOTest(SocketConnectedTest): _testRecvFromIntoMemoryview = _testRecvFromIntoArray + def testRecvFromIntoSmallBuffer(self): + # See issue #20246. + buf = bytearray(8) + self.assertRaises(ValueError, self.cli_conn.recvfrom_into, buf, 1024) + + def _testRecvFromIntoSmallBuffer(self): + self.serv_conn.send(MSG*2048) + TIPC_STYPE = 2000 TIPC_LOWER = 200 |