diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-09 12:01:02 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-09 12:01:02 +0300 |
commit | 3dabaae47d7f813ce506950f590d302cc8cbc0d9 (patch) | |
tree | 7eae3b19a8c5c937b3650227634b38d616a131ff /tests | |
parent | d22a04d9c4364386e1798fe296c94e4ddeeafe51 (diff) | |
download | micropython-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.py | 5 |
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) |