diff options
| author | Damien George <damien@micropython.org> | 2023-11-20 23:04:55 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-02-07 13:25:09 +1100 |
| commit | b87bbaeb43ddbd603b6ac3266ccc15815198b5a7 (patch) | |
| tree | 768abedede5042051967a9e73d6354619a4acd71 /tests/extmod/vfs_blockdev.py | |
| parent | 5804aa020452c9fe115c53ce9514b442945832bb (diff) | |
tests: Use vfs module instead of os.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/vfs_blockdev.py')
| -rw-r--r-- | tests/extmod/vfs_blockdev.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/extmod/vfs_blockdev.py b/tests/extmod/vfs_blockdev.py index f4c84ea92..a1f074996 100644 --- a/tests/extmod/vfs_blockdev.py +++ b/tests/extmod/vfs_blockdev.py @@ -1,10 +1,10 @@ # Test for behaviour of combined standard and extended block device try: - import os + import vfs - os.VfsFat - os.VfsLfs2 + vfs.VfsFat + vfs.VfsLfs2 except (ImportError, AttributeError): print("SKIP") raise SystemExit @@ -65,12 +65,10 @@ def test(bdev, vfs_class): try: - import os - bdev = RAMBlockDevice(50) except MemoryError: print("SKIP") raise SystemExit -test(bdev, os.VfsFat) -test(bdev, os.VfsLfs2) +test(bdev, vfs.VfsFat) +test(bdev, vfs.VfsLfs2) |
