10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0149cd6 commit d470c5aCopy full SHA for d470c5a
tests/extmod/vfs_posix.py
@@ -59,9 +59,10 @@
59
vfs = uos.VfsPosix(temp_dir)
60
print(list(i[0] for i in vfs.ilistdir(".")))
61
62
-# stat, statvfs
+# stat, statvfs (statvfs may not exist)
63
print(type(vfs.stat(".")))
64
-print(type(vfs.statvfs(".")))
+if hasattr(vfs, "statvfs"):
65
+ assert type(vfs.statvfs(".")) is tuple
66
67
# check types of ilistdir with str/bytes arguments
68
print(type(list(vfs.ilistdir("."))[0][0]))
tests/extmod/vfs_posix.py.exp
@@ -7,7 +7,6 @@ hello
7
['test2']
8
9
<class 'tuple'>
10
-<class 'tuple'>
11
<class 'str'>
12
<class 'bytes'>
13
[]
0 commit comments