mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
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>
This commit is contained in:
@@ -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"))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
listdir("/"): ['subdir']
|
||||
listdir("."): ['subdir']
|
||||
getcwd() in {"", "/"}: True
|
||||
getcwd() in ("", "/"): True
|
||||
chdir("subdir"): None
|
||||
getcwd(): /subdir
|
||||
mkdir("two"): None
|
||||
|
||||
Reference in New Issue
Block a user