You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests/vfs_fat_ramdisk: Skip test if can't allocate ramdisk.
This commit is contained in:
@@ -32,7 +32,12 @@ class RAMFS:
|
||||
return self.SEC_SIZE
|
||||
|
||||
|
||||
bdev = RAMFS(48)
|
||||
try:
|
||||
bdev = RAMFS(48)
|
||||
except MemoryError:
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
uos.VfsFat.mkfs(bdev)
|
||||
|
||||
assert b"FOO_FILETXT" not in bdev.data
|
||||
|
||||
Reference in New Issue
Block a user