From 3dabaae47d7f813ce506950f590d302cc8cbc0d9 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 9 Oct 2016 12:01:02 +0300 Subject: tests/io/bytesio_ext: Add test for readinto(). --- tests/io/bytesio_ext.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/io/bytesio_ext.py') diff --git a/tests/io/bytesio_ext.py b/tests/io/bytesio_ext.py index 30d79fcfcd..e827d1409c 100644 --- a/tests/io/bytesio_ext.py +++ b/tests/io/bytesio_ext.py @@ -17,3 +17,8 @@ print(a.getvalue()) a.flush() print(a.getvalue()) + +a.seek(0) +arr = bytearray(10) +print(a.readinto(arr)) +print(arr) -- cgit v1.2.3