summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-04-24 12:21:04 +1000
committerDamien George <damien@micropython.org>2025-04-24 22:06:11 +1000
commita081b2e151565550508ac782ef15db8e9d2a7eff (patch)
treeb0850b60837f4d5296a5ee639ddf6f805fe55342 /tests
parentc83e907d9dba3d6be2305b2e2e6b646dd51c495a (diff)
tests/extmod/vfs_lfs_ilistdir_del.py: Skip test if not enough memory.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/vfs_lfs_ilistdir_del.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/extmod/vfs_lfs_ilistdir_del.py b/tests/extmod/vfs_lfs_ilistdir_del.py
index 7b59bc412..f463b84b2 100644
--- a/tests/extmod/vfs_lfs_ilistdir_del.py
+++ b/tests/extmod/vfs_lfs_ilistdir_del.py
@@ -71,5 +71,10 @@ def test(bdev, vfs_class):
fs.open("/test", "w").close()
-bdev = RAMBlockDevice(30)
+try:
+ bdev = RAMBlockDevice(30)
+except MemoryError:
+ print("SKIP")
+ raise SystemExit
+
test(bdev, vfs.VfsLfs2)