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

This commit is contained in:
Tom Collins 2017-05-12 13:28:07 -07:00 committed by Paul Sokolovsky
parent 53461deb04
commit 162a0f942b
1 changed files with 4 additions and 0 deletions

View File

@ -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")