Commit abd5a57e authored by Paul Sokolovsky's avatar Paul Sokolovsky

tests/io/bytesio_ext: Test for .seek()/.flush() on BytesIO.

parent 3990b171
# Extended stream operations on io.BytesIO
try:
import uio as io
except ImportError:
import io
a = io.BytesIO()
print(a.seek(8))
a.write(b"123")
print(a.getvalue())
print(a.seek(0, 1))
print(a.seek(-1, 2))
a.write(b"0")
print(a.getvalue())
a.flush()
print(a.getvalue())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment