Skip to content

Commit 162a0f9

Browse files
tomlogicpfalcon
authored andcommitted
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy