diff options
author | Damien George <damien@micropython.org> | 2025-09-14 11:50:46 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-10-01 23:59:15 +1000 |
commit | 3de5a4c63c4414a35f31ff50e3642129c1eada02 (patch) | |
tree | 7c1490edae138a9d6fe65d367557c0f554240c21 | |
parent | a3a2b9e9738332eb9033bc1c227c9a69e9476e97 (diff) |
tests/extmod/vfs_posix_paths.py: Use tuple instead of set.
So it can be used on targets without set enabled (or at least not raise a
SyntaxError when compiling it).
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r-- | tests/extmod/vfs_posix_paths.py | 2 | ||||
-rw-r--r-- | tests/extmod/vfs_posix_paths.py.exp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/extmod/vfs_posix_paths.py b/tests/extmod/vfs_posix_paths.py index b4fedc671..c06318748 100644 --- a/tests/extmod/vfs_posix_paths.py +++ b/tests/extmod/vfs_posix_paths.py @@ -31,7 +31,7 @@ fs.mkdir("subdir") fs.mkdir("subdir/one") print('listdir("/"):', sorted(i[0] for i in fs.ilistdir("/"))) print('listdir("."):', sorted(i[0] for i in fs.ilistdir("."))) -print('getcwd() in {"", "/"}:', fs.getcwd() in {"", "/"}) +print('getcwd() in ("", "/"):', fs.getcwd() in ("", "/")) print('chdir("subdir"):', fs.chdir("subdir")) print("getcwd():", fs.getcwd()) print('mkdir("two"):', fs.mkdir("two")) diff --git a/tests/extmod/vfs_posix_paths.py.exp b/tests/extmod/vfs_posix_paths.py.exp index ecc13222a..d6a0960ef 100644 --- a/tests/extmod/vfs_posix_paths.py.exp +++ b/tests/extmod/vfs_posix_paths.py.exp @@ -1,6 +1,6 @@ listdir("/"): ['subdir'] listdir("."): ['subdir'] -getcwd() in {"", "/"}: True +getcwd() in ("", "/"): True chdir("subdir"): None getcwd(): /subdir mkdir("two"): None |