diff options
| author | Damien George | 2018-06-20 17:11:58 +1000 |
|---|---|---|
| committer | Damien George | 2018-06-27 16:55:05 +1000 |
| commit | 726804ea405483872ebc93772aea0ab0bfce0bcf (patch) | |
| tree | f3ee9544b5ea83dfa671e40a4341bf91524e785c /tests/io/bytesio_ext.py | |
| parent | bc6c56d75d1b954b42b01dc8e10e283523b2e902 (diff) | |
tests: Move non-filesystem io tests to basics dir with io_ prefix.
Diffstat (limited to 'tests/io/bytesio_ext.py')
| -rw-r--r-- | tests/io/bytesio_ext.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/io/bytesio_ext.py b/tests/io/bytesio_ext.py deleted file mode 100644 index e454b2fd9..000000000 --- a/tests/io/bytesio_ext.py +++ /dev/null @@ -1,28 +0,0 @@ -# Extended stream operations on io.BytesIO -try: - import uio as io -except ImportError: - import io - -a = io.BytesIO(b"foobar") -a.seek(10) -print(a.read(10)) - -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()) - -a.seek(0) -arr = bytearray(10) -print(a.readinto(arr)) -print(arr) |
