Paul Sokolovsky
85d809d1f4
tests: Convert remaining "sys.exit()" to "raise SystemExit".
2017-06-10 20:34:38 +03:00
Paul Sokolovsky
07241cd37a
py/objstringio: If created from immutable object, follow copy on write policy.
...
Don't create copy of immutable object's contents until .write() is called
on BytesIO.
2017-06-09 17:33:01 +03:00
Tom Collins
162a0f942b
tests/io/bytesio_ext: Test read() after seek() past end of BytesIO object.
2017-05-15 23:58:06 +03:00
Paul Sokolovsky
4a4490ffcc
py/modio: resource_stream: Implement "package" param handling.
2017-05-06 18:42:35 +03:00
Paul Sokolovsky
7d4ba9d257
tests/io/resource_stream: Add test for uio.resource_stream().
2017-05-03 01:47:14 +03:00
Rami Ali
cba723fc8c
tests/io: Improve test coverage of io.BufferedWriter.
2017-01-17 13:27:02 +11:00
Paul Sokolovsky
8212773adb
tests: Use read() instead of readall().
2016-11-14 00:27:35 +03:00
Paul Sokolovsky
3dabaae47d
tests/io/bytesio_ext: Add test for readinto().
2016-10-09 12:01:02 +03:00
Paul Sokolovsky
49e140488d
tests/io/write_ext: Add description comment.
2016-10-09 11:55:28 +03:00
Paul Sokolovsky
abd5a57ea1
tests/io/bytesio_ext: Test for .seek()/.flush() on BytesIO.
2016-07-29 23:00:25 +03:00
Paul Sokolovsky
0b52228739
tests: Add test for extended arguments to stream .write() method.
2016-07-14 11:48:15 +03:00
Paul Sokolovsky
566d8f1d7e
tests: Make "io" modules fixes for CPython compatibility.
...
Previously, "import _io" worked on both CPython and MicroPython (essentially
by a chance on CPython, as there's not guarantee that its contents will stay
the same across versions), but as the module was renamed to uio, need to use
more robust import sequence for compatibility.
2016-05-02 14:38:07 +03:00
Paul Sokolovsky
8c35f3979c
tests: Update for _io/_collections module having been renamed.
2016-05-02 14:15:11 +03:00
Paul Sokolovsky
88f60de914
tests: Add test for io.BufferedWriter.
2016-03-25 15:01:19 +02:00
Damien George
99146ea444
tests/io: Remove "testfile" at end of open_plus test.
2016-03-17 20:09:33 +00:00
Paul Sokolovsky
5bf6eba845
tests/open_plus: Add tests for "r+", "w+" open modes.
2016-02-06 21:59:54 +02:00
Damien George
117158fcd5
tests: Add tests for stream IO errors.
2015-12-23 22:37:02 +00:00
Paul Sokolovsky
a6eff059b9
unix: Rename "_os" module to "uos" for consistency with baremetal ports.
2015-12-12 00:04:35 +02:00
Damien George
d292a81e95
tests: Make io test cleanup after itself by removing 'testfile'.
2015-08-21 08:45:52 +01:00
blmorris
bdd78c31b6
py: Add stream_tell method, and use for unix and stmhal file tell.
2015-08-13 22:56:32 +01:00
Paul Sokolovsky
a06c38b486
tests: Add testcase for open(..., "a").
2015-06-21 00:05:09 +03:00
Damien George
9dd3640464
tests: Add missing tests for builtins, and many other things.
2015-04-04 22:05:30 +01:00
Damien George
92ab95f215
tests: Add some tests to improve coverage.
2015-01-29 14:56:09 +00:00
Paul Sokolovsky
66b060f3e6
tests: Fix typo in file_long_read3.py.
2015-01-23 19:00:02 +02:00
Paul Sokolovsky
1f04336b23
tests: Add extra test for reading multiple of internal chunk size.
2015-01-23 18:18:11 +02:00