stijn
9ae8d38204
extmod/vfs_posix_file: Implement finaliser for files.
...
Prevent handle leaks when file objects aren't closed explicitly and
fix some MICROPY_CPYTHON_COMPAT issues: this wasn't properly adhered
to because #ifdef was used so it was always on, and closing files
multiple times should be avoided unconditionally.
2022-09-19 23:44:50 +10:00
Damien George
d470c5a5ba
tests/extmod/vfs_posix.py: Only test statvfs if it exists.
...
Signed-off-by: Damien George <damien@micropython.org>
2022-03-10 00:41:03 +11:00
Damien George
df85e48813
tests/extmod/vfs_posix.py: Add more tests for VfsPosix class.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-02-11 23:49:44 +11:00
Damien George
26b4ef4c46
extmod/vfs_posix_file: Allow closing an already closed file.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-02-11 22:54:41 +11:00
Damien George
6a3d70db96
tests/extmod: Add vfs_posix.py test for uos.VfsPosix class.
...
Signed-off-by: Damien George <damien@micropython.org>
2020-11-29 17:31:24 +11:00