Skip to content

Commit 3dabaae

Browse files
committed
tests/io/bytesio_ext: Add test for readinto().
1 parent d22a04d commit 3dabaae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/io/bytesio_ext.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@
1717

1818
a.flush()
1919
print(a.getvalue())
20+
21+
a.seek(0)
22+
arr = bytearray(10)
23+
print(a.readinto(arr))
24+
print(arr)

0 commit comments

Comments
 (0)