tests/extmod/vfs_fat_ilistdir_del.py: Use 512-byte erase block size.

Following other vfs_fat tests, so the test works on ports like stm32 that
only support 512-byte block size.

Signed-off-by: Damien George <damien@micropython.org>
pull/11153/head
Damien George 2023-03-29 23:15:16 +11:00
rodzic 283c1ba07e
commit a4672149b6
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -11,7 +11,7 @@ except (ImportError, AttributeError):
class RAMBlockDevice:
ERASE_BLOCK_SIZE = 4096
ERASE_BLOCK_SIZE = 512
def __init__(self, blocks):
self.data = bytearray(blocks * self.ERASE_BLOCK_SIZE)
@ -72,7 +72,7 @@ def test(bdev, vfs_class):
try:
bdev = RAMBlockDevice(30)
bdev = RAMBlockDevice(50)
except MemoryError:
print("SKIP")
raise SystemExit