summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-09 12:01:02 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-09 12:01:02 +0300
commit3dabaae47d7f813ce506950f590d302cc8cbc0d9 (patch)
tree7eae3b19a8c5c937b3650227634b38d616a131ff /tests
parentd22a04d9c4364386e1798fe296c94e4ddeeafe51 (diff)
downloadmicropython-3dabaae47d7f813ce506950f590d302cc8cbc0d9.tar.gz
micropython-3dabaae47d7f813ce506950f590d302cc8cbc0d9.zip
tests/io/bytesio_ext: Add test for readinto().
Diffstat (limited to 'tests')
-rw-r--r--tests/io/bytesio_ext.py5
1 files changed, 5 insertions, 0 deletions
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)