summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/vfs_lfs_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_lfs_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_lfs_mtime.py')
-rw-r--r--tests/extmod/vfs_lfs_mtime.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/extmod/vfs_lfs_mtime.py b/tests/extmod/vfs_lfs_mtime.py
index a67e48dd80..ade02fa144 100644
--- a/tests/extmod/vfs_lfs_mtime.py
+++ b/tests/extmod/vfs_lfs_mtime.py
@@ -1,11 +1,11 @@
# Test for VfsLfs using a RAM device, mtime feature
try:
- import utime, uos
+ import time, os
- utime.time
- utime.sleep
- uos.VfsLfs2
+ time.time
+ time.sleep
+ os.VfsLfs2
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit
@@ -47,11 +47,11 @@ def test(bdev, vfs_class):
vfs = vfs_class(bdev, mtime=True)
# Create an empty file, should have a timestamp.
- current_time = int(utime.time())
+ current_time = int(time.time())
vfs.open("test1", "wt").close()
# Wait 1 second so mtime will increase by at least 1.
- utime.sleep(1)
+ time.sleep(1)
# Create another empty file, should have a timestamp.
vfs.open("test2", "wt").close()
@@ -68,7 +68,7 @@ def test(bdev, vfs_class):
print(stat1[8] < stat2[8])
# Wait 1 second so mtime will increase by at least 1.
- utime.sleep(1)
+ time.sleep(1)
# Open test1 for reading and ensure mtime did not change.
vfs.open("test1", "rt").close()
@@ -107,4 +107,4 @@ except MemoryError:
print("SKIP")
raise SystemExit
-test(bdev, uos.VfsLfs2)
+test(bdev, os.VfsLfs2)