diff options
author | Damien George <damien.p.george@gmail.com> | 2017-05-05 23:35:49 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-05-10 11:39:29 +1000 |
commit | 852c215d76de082adf57d3724907ab2c8d790e78 (patch) | |
tree | c02255c650d0ef8acd134e0f9d2e18e176e77c6f /tests/extmod/vfs_fat_ramdisk.py | |
parent | d4cd4831b01ff87b4a9f84bb88b165e3b156b3b4 (diff) | |
download | micropython-852c215d76de082adf57d3724907ab2c8d790e78.tar.gz micropython-852c215d76de082adf57d3724907ab2c8d790e78.zip |
tests/extmod/vfs: Update tests to reflect new ilistdir() method.
Diffstat (limited to 'tests/extmod/vfs_fat_ramdisk.py')
-rw-r--r-- | tests/extmod/vfs_fat_ramdisk.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/extmod/vfs_fat_ramdisk.py b/tests/extmod/vfs_fat_ramdisk.py index 81f9418b28..89b40e3a24 100644 --- a/tests/extmod/vfs_fat_ramdisk.py +++ b/tests/extmod/vfs_fat_ramdisk.py @@ -65,7 +65,7 @@ except OSError as e: with vfs.open("foo_file.txt", "w") as f: f.write("hello!") -print(vfs.listdir()) +print(list(vfs.ilistdir())) print("stat root:", vfs.stat("/")) print("stat file:", vfs.stat("foo_file.txt")[:-3]) # timestamps differ across runs @@ -76,7 +76,7 @@ print(b"hello!" in bdev.data) vfs.mkdir("foo_dir") vfs.chdir("foo_dir") print("getcwd:", vfs.getcwd()) -print(vfs.listdir()) +print(list(vfs.ilistdir())) with vfs.open("sub_file.txt", "w") as f: f.write("subdir file") @@ -92,4 +92,4 @@ print("getcwd:", vfs.getcwd()) uos.umount(vfs) vfs = uos.VfsFat(bdev) -print(vfs.listdir(b"")) +print(list(vfs.ilistdir(b""))) |