summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-11-16 23:56:37 +0000
committerDamien George <damien.p.george@gmail.com>2014-11-16 23:56:37 +0000
commit5694cc5490235a9091fe3e2c5563471565e3da97 (patch)
tree3f867d354a06935acf32d47df1fd8fbaf1285168 /tests
parent91386eee2613cbaf736d746cfef28674cce82c01 (diff)
py: Make stream seek correctly check for ioctl fn; add seek for textio.
Diffstat (limited to 'tests')
-rw-r--r--tests/io/file_seek.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/io/file_seek.py b/tests/io/file_seek.py
index 2ced3576d..922b16928 100644
--- a/tests/io/file_seek.py
+++ b/tests/io/file_seek.py
@@ -10,3 +10,11 @@ print(f.read(20))
print(f.seek(0, 0))
print(f.read(5))
+
+f.close()
+
+# test text mode
+f = open("io/data/file1", "rt")
+print(f.seek(6))
+print(f.read(5))
+f.close()