diff options
Diffstat (limited to 'tests/io/file_readinto.py')
-rw-r--r-- | tests/io/file_readinto.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/io/file_readinto.py b/tests/io/file_readinto.py new file mode 100644 index 0000000000..7a0603377a --- /dev/null +++ b/tests/io/file_readinto.py @@ -0,0 +1,7 @@ +b = bytearray(30) +f = open("io/data/file1", "rb") +print(f.readinto(b)) +print(b) +f = open("io/data/file2", "rb") +print(f.readinto(b)) +print(b) |