summaryrefslogtreecommitdiff
path: root/tests/io/file1.py
AgeCommit message (Collapse)Author
2021-02-11extmod/vfs_posix_file: Allow closing an already closed file.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2020-03-30tests: Format all Python code with black, except tests in basics subdir.David Lechner
This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting.
2016-11-14tests: Use read() instead of readall().Paul Sokolovsky
2015-12-23tests: Add tests for stream IO errors.Damien George
2014-10-21Use mode/encoding kwargs in io and unicode testsstijn
mode argument is used to assert it works encoding argument is used to make sure CPython uses the correct encoding as it does not automatically use utf-8
2014-05-03py, stream: Implement readlines for a stream.Damien George
2014-01-19Add directory for I/O tests with basic test for file methods.Paul Sokolovsky