Skip to content

Commit a79d97c

Browse files
committed
tests/extmod/vfs_fat_fileio2.py: Close test file at end of test.
Otherwise it can lead to inconsistent results running subsequent tests. Signed-off-by: Damien George <damien@micropython.org>
1 parent 2b888aa commit a79d97c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/extmod/vfs_fat_fileio2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,4 @@ def ioctl(self, op, arg):
112112
f.write(bytearray(bsize * free))
113113
except OSError as e:
114114
print("ENOSPC:", e.args[0] == 28) # uerrno.ENOSPC
115+
f.close()

0 commit comments

Comments
 (0)