tests/vfs_fat_ramdisk: Allow to run in native mode (don't use "with").

This commit is contained in:
Paul Sokolovsky 2016-02-29 01:03:32 +02:00
parent 08fed6992f
commit 9fb36af9af

View File

@ -63,7 +63,8 @@ assert vfs.listdir() == []
vfs.mkdir("foo_dir")
assert vfs.listdir() == ['foo_dir']
with vfs.open("foo_dir/file-in-dir.txt", "w") as f:
f.write("data in file")
f = vfs.open("foo_dir/file-in-dir.txt", "w")
f.write("data in file")
f.close()
assert vfs.listdir("foo_dir") == ['file-in-dir.txt']