We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08fed69 commit 9fb36afCopy full SHA for 9fb36af
1 file changed
tests/extmod/vfs_fat_ramdisk.py
@@ -63,7 +63,8 @@ def ioctl(self, op, arg):
63
64
vfs.mkdir("foo_dir")
65
assert vfs.listdir() == ['foo_dir']
66
-with vfs.open("foo_dir/file-in-dir.txt", "w") as f:
67
- f.write("data in file")
+f = vfs.open("foo_dir/file-in-dir.txt", "w")
+f.write("data in file")
68
+f.close()
69
70
assert vfs.listdir("foo_dir") == ['file-in-dir.txt']
0 commit comments