summaryrefslogtreecommitdiff
path: root/tests/basics/io_stringio1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/io_stringio1.py')
-rw-r--r--tests/basics/io_stringio1.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/io_stringio1.py b/tests/basics/io_stringio1.py
index 9f7c1e44e..41089f22d 100644
--- a/tests/basics/io_stringio1.py
+++ b/tests/basics/io_stringio1.py
@@ -34,6 +34,11 @@ a.write("foo")
print(a.read())
a = io.StringIO()
+print(a.tell())
+a.write("foo")
+print(a.tell())
+
+a = io.StringIO()
a.close()
for f in [a.read, a.getvalue, lambda:a.write("")]:
# CPython throws for operations on closed I/O, MicroPython makes