8000 tests/io/bytesio_ext: Test read() after seek() past end of BytesIO ob… · micropython/micropython-esp32@162a0f9 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 162a0f9

Browse files
tomlogicPaul Sokolovsky
authored and
Paul Sokolovsky
committed
tests/io/bytesio_ext: Test read() after seek() past end of BytesIO object.
1 parent 53461de commit 162a0f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/io/bytesio_ext.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
except ImportError:
55
import io
66

7+
a = io.BytesIO(b"foobar")
8+
a.seek(10)
9+
print(a.read(10))
10+
711
a = io.BytesIO()
812
print(a.seek(8))
913
a.write(b"123")

0 commit comments

Comments
 (0)
0