Skip to content

Commit

Permalink
tests/extmod/vfs_fat_fileio2.py: Close test file at end of test.
Browse files Browse the repository at this point in the history
Otherwise it can lead to inconsistent results running subsequent tests.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Mar 16, 2021
1 parent 2b888aa commit a79d97c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/extmod/vfs_fat_fileio2.py
Expand Up @@ -112,3 +112,4 @@ def ioctl(self, op, arg):
f.write(bytearray(bsize * free))
except OSError as e:
print("ENOSPC:", e.args[0] == 28) # uerrno.ENOSPC
f.close()

0 comments on commit a79d97c

Please sign in to comment.