10000 tests/extmod/vfs_lfs_ilistdir_del.py: Skip test if not enough memory. · sparkfun/micropython@a081b2e · GitHub
[go: up one dir, main page]

Skip to content

Commit a081b2e

Browse files
committed
tests/extmod/vfs_lfs_ilistdir_del.py: Skip test if not enough memory.
Signed-off-by: Damien George <damien@micropython.org>
1 parent c83e907 commit a081b2e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/extmod/vfs_lfs_ilistdir_del.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,10 @@ def test(bdev, vfs_class):
7171
fs.open("/test", "w").close()
7272

7373

74-
bdev = RAMBlockDevice(30)
74+
try:
75+
bdev = RAMBlockDevice(30)
76+
except MemoryError:
77+
print("SKIP")
78+
raise SystemExit
79+
7580
test(bdev, vfs.VfsLfs2)

0 commit comments

Comments
 (0)
0