summaryrefslogtreecommitdiff
path: root/tests/extmod/vfs_fat_fileio2.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-03-16 12:45:39 +1100
committerDamien George <damien@micropython.org>2021-03-16 14:49:57 +1100
commita79d97cb76cf6ec3794c357b706dd24970317c4a (patch)
tree9d1c7200dca5a0c80e88f8a93d038b8c6fffeeec /tests/extmod/vfs_fat_fileio2.py
parent2b888aa2f346b52b16fbefbea6a2d9d8085d8ff1 (diff)
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>
Diffstat (limited to 'tests/extmod/vfs_fat_fileio2.py')
-rw-r--r--tests/extmod/vfs_fat_fileio2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/extmod/vfs_fat_fileio2.py b/tests/extmod/vfs_fat_fileio2.py
index a9cea2bed..531dd91f9 100644
--- a/tests/extmod/vfs_fat_fileio2.py
+++ b/tests/extmod/vfs_fat_fileio2.py
@@ -112,3 +112,4 @@ try:
f.write(bytearray(bsize * free))
except OSError as e:
print("ENOSPC:", e.args[0] == 28) # uerrno.ENOSPC
+f.close()