diff options
| author | stijn <stijn@ignitron.net> | 2022-09-12 14:45:39 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-09-19 23:44:50 +1000 |
| commit | 9ae8d3820474a9525d707b1e19f7703721aec1c8 (patch) | |
| tree | e3771befbb0b352ea8b0d488d8064d39c2e988b8 /tests/extmod/vfs_posix.py.exp | |
| parent | fb77be150636090d69460578ed8458d84db02614 (diff) | |
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.
Diffstat (limited to 'tests/extmod/vfs_posix.py.exp')
| -rw-r--r-- | tests/extmod/vfs_posix.py.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/extmod/vfs_posix.py.exp b/tests/extmod/vfs_posix.py.exp index eb9ab4310..99922e621 100644 --- a/tests/extmod/vfs_posix.py.exp +++ b/tests/extmod/vfs_posix.py.exp @@ -4,6 +4,7 @@ True <class 'list'> <io.TextIOWrapper 2> hello +next_file_no <= base_file_no True ['test2'] ['test2'] <class 'tuple'> |
