summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTom Collins <tom.collins@digi.com>2017-05-12 13:28:07 -0700
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-05-15 23:58:06 +0300
commit162a0f942b8c049ef3b7a4c6ad7f28f8a46667dd (patch)
treeeffb263765a17914dfda2361c1ab1e2a38f36143
parent53461deb04ecddf3be8b8b03024bb8bbc08b9d6b (diff)
downloadmicropython-162a0f942b8c049ef3b7a4c6ad7f28f8a46667dd.tar.gz
micropython-162a0f942b8c049ef3b7a4c6ad7f28f8a46667dd.zip
tests/io/bytesio_ext: Test read() after seek() past end of BytesIO object.
-rw-r--r--tests/io/bytesio_ext.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/io/bytesio_ext.py b/tests/io/bytesio_ext.py
index e827d1409c..e454b2fd9f 100644
--- a/tests/io/bytesio_ext.py
+++ b/tests/io/bytesio_ext.py
@@ -4,6 +4,10 @@ try:
except ImportError:
import io
+a = io.BytesIO(b"foobar")
+a.seek(10)
+print(a.read(10))
+
a = io.BytesIO()
print(a.seek(8))
a.write(b"123")