summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/vfs_fat_fileio.py6
-rw-r--r--tests/extmod/vfs_fat_fileio.py.exp1
2 files changed, 1 insertions, 6 deletions
diff --git a/tests/extmod/vfs_fat_fileio.py b/tests/extmod/vfs_fat_fileio.py
index 26fec78281..de8d4953c4 100644
--- a/tests/extmod/vfs_fat_fileio.py
+++ b/tests/extmod/vfs_fat_fileio.py
@@ -48,6 +48,7 @@ print(str(f)[:17], str(f)[-1:])
f.write("hello!")
f.flush()
f.close()
+f.close() # allowed
try:
f.write("world!")
except OSError as e:
@@ -64,11 +65,6 @@ except OSError as e:
print(e.args[0] == uerrno.EINVAL)
try:
- f.close()
-except OSError as e:
- print(e.args[0] == uerrno.EINVAL)
-
-try:
vfs.open("foo_file.txt", "x")
except OSError as e:
print(e.args[0] == uerrno.EEXIST)
diff --git a/tests/extmod/vfs_fat_fileio.py.exp b/tests/extmod/vfs_fat_fileio.py.exp
index 9f0edb31ef..c438bc850c 100644
--- a/tests/extmod/vfs_fat_fileio.py.exp
+++ b/tests/extmod/vfs_fat_fileio.py.exp
@@ -3,7 +3,6 @@ True
True
True
True
-True
hello!world!
12
h