diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-20 17:11:58 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-27 16:55:05 +1000 |
commit | 726804ea405483872ebc93772aea0ab0bfce0bcf (patch) | |
tree | f3ee9544b5ea83dfa671e40a4341bf91524e785c /tests/io/write_ext.py | |
parent | bc6c56d75d1b954b42b01dc8e10e283523b2e902 (diff) |
tests: Move non-filesystem io tests to basics dir with io_ prefix.
Diffstat (limited to 'tests/io/write_ext.py')
-rw-r--r-- | tests/io/write_ext.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/io/write_ext.py b/tests/io/write_ext.py deleted file mode 100644 index 5a6eaa35c..000000000 --- a/tests/io/write_ext.py +++ /dev/null @@ -1,26 +0,0 @@ -# This tests extended (MicroPython-specific) form of write: -# write(buf, len) and write(buf, offset, len) -import uio - -try: - uio.BytesIO -except AttributeError: - print('SKIP') - raise SystemExit - -buf = uio.BytesIO() - -buf.write(b"foo", 2) -print(buf.getvalue()) - -buf.write(b"foo", 100) -print(buf.getvalue()) - -buf.write(b"foobar", 1, 3) -print(buf.getvalue()) - -buf.write(b"foobar", 1, 100) -print(buf.getvalue()) - -buf.write(b"foobar", 100, 100) -print(buf.getvalue()) |