summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/vfs_fat_fileio2.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-02-09 15:21:57 +1100
committerDamien George <damien@micropython.org>2023-02-09 15:32:06 +1100
commitd99ebb310c1d6cdc87f3fa9a913149d1cd9c474a (patch)
tree4ace8895d1a046e322614f2ca5ec207f6826de4b /tests/extmod/vfs_fat_fileio2.py
parentb1123a54c1021ac40c1a809dc41681aa7b307bc9 (diff)
downloadmicropython-d99ebb310c1d6cdc87f3fa9a913149d1cd9c474a.tar.gz
micropython-d99ebb310c1d6cdc87f3fa9a913149d1cd9c474a.zip
tests/extmod: Skip vfs tests if target doesn't have enough memory.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/vfs_fat_fileio2.py')
-rw-r--r--tests/extmod/vfs_fat_fileio2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/vfs_fat_fileio2.py b/tests/extmod/vfs_fat_fileio2.py
index c7bdceb3df..9429f115f6 100644
--- a/tests/extmod/vfs_fat_fileio2.py
+++ b/tests/extmod/vfs_fat_fileio2.py
@@ -38,11 +38,11 @@ class RAMFS:
try:
bdev = RAMFS(50)
+ uos.VfsFat.mkfs(bdev)
except MemoryError:
print("SKIP")
raise SystemExit
-uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev)
uos.mount(vfs, "/ramdisk")
uos.chdir("/ramdisk")