Skip to content
Snippets Groups Projects
Commit 162a0f94 authored by Tom Collins's avatar Tom Collins Committed by Paul Sokolovsky
Browse files

tests/io/bytesio_ext: Test read() after seek() past end of BytesIO object.

parent 53461deb
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,10 @@ try: ...@@ -4,6 +4,10 @@ try:
except ImportError: except ImportError:
import io import io
a = io.BytesIO(b"foobar")
a.seek(10)
print(a.read(10))
a = io.BytesIO() a = io.BytesIO()
print(a.seek(8)) print(a.seek(8))
a.write(b"123") a.write(b"123")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment