diff options
author | Damien George <damien@micropython.org> | 2023-03-29 23:15:16 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-03-29 23:15:16 +1100 |
commit | a4672149b61e453335d68ec12f640aae4b05d604 (patch) | |
tree | 3a56550506c8491cc9b5b0121a251bda41f6f34d /tests | |
parent | 283c1ba07e054af70e7efac3d90917e29c3cca21 (diff) | |
download | micropython-a4672149b61e453335d68ec12f640aae4b05d604.tar.gz micropython-a4672149b61e453335d68ec12f640aae4b05d604.zip |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/extmod/vfs_fat_ilistdir_del.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/extmod/vfs_fat_ilistdir_del.py b/tests/extmod/vfs_fat_ilistdir_del.py index 4389f822bb..ccdacc57c2 100644 --- a/tests/extmod/vfs_fat_ilistdir_del.py +++ b/tests/extmod/vfs_fat_ilistdir_del.py @@ -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 |