Browse Source

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

pull/2913/merge
Tom Collins 8 years ago
committed by Paul Sokolovsky
parent
commit
162a0f942b
  1. 4
      tests/io/bytesio_ext.py

4
tests/io/bytesio_ext.py

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

Loading…
Cancel
Save