diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/io/data/file2 | 1 | ||||
| -rw-r--r-- | tests/io/file_readinto.py | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/io/data/file2 b/tests/io/data/file2 new file mode 100644 index 000000000..274c0052d --- /dev/null +++ b/tests/io/data/file2 @@ -0,0 +1 @@ +1234
\ No newline at end of file diff --git a/tests/io/file_readinto.py b/tests/io/file_readinto.py new file mode 100644 index 000000000..7a0603377 --- /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) |
