summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/vfs_fat_mtime.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-08-18 16:57:45 +1000
committerJim Mussared <jim.mussared@gmail.com>2023-06-08 17:54:24 +1000
commit4216bc7d1351feb8199e4ebbff1a9598aa1c5b02 (patch)
tree5085738ef65ab377c221f290c7fa90ec2acd4d29 /tests/extmod/vfs_fat_mtime.py
parent5e50975a6dd9466afafbcd012c00078093fe1f57 (diff)
downloadmicropython-4216bc7d1351feb8199e4ebbff1a9598aa1c5b02.tar.gz
micropython-4216bc7d1351feb8199e4ebbff1a9598aa1c5b02.zip
tests: Replace umodule with module everywhere.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/extmod/vfs_fat_mtime.py')
-rw-r--r--tests/extmod/vfs_fat_mtime.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/extmod/vfs_fat_mtime.py b/tests/extmod/vfs_fat_mtime.py
index d8fd66b75f..1ceb611364 100644
--- a/tests/extmod/vfs_fat_mtime.py
+++ b/tests/extmod/vfs_fat_mtime.py
@@ -1,11 +1,11 @@
# Test for VfsFat using a RAM device, mtime feature
try:
- import utime, uos
+ import time, os
- utime.time
- utime.sleep
- uos.VfsFat
+ time.time
+ time.sleep
+ os.VfsFat
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit
@@ -44,11 +44,11 @@ def test(bdev, vfs_class):
vfs = vfs_class(bdev)
# Create an empty file, should have a timestamp.
- current_time = int(utime.time())
+ current_time = int(time.time())
vfs.open("test1", "wt").close()
# Wait 2 seconds so mtime will increase (FAT has 2 second resolution).
- utime.sleep(2)
+ time.sleep(2)
# Create another empty file, should have a timestamp.
vfs.open("test2", "wt").close()
@@ -71,4 +71,4 @@ def test(bdev, vfs_class):
bdev = RAMBlockDevice(50)
-test(bdev, uos.VfsFat)
+test(bdev, os.VfsFat)