Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
cda09727
Commit
cda09727
authored
May 13, 2017
by
Damien George
Browse files
tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.
parent
f95e4e77
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/extmod/vfs_fat_ramdisk.py
View file @
cda09727
...
...
@@ -93,3 +93,9 @@ uos.umount(vfs)
vfs
=
uos
.
VfsFat
(
bdev
)
print
(
list
(
vfs
.
ilistdir
(
b
""
)))
# list a non-existent directory
try
:
vfs
.
ilistdir
(
b
"no_exist"
)
except
OSError
as
e
:
print
(
'ENOENT:'
,
e
.
args
[
0
]
==
uerrno
.
ENOENT
)
tests/extmod/vfs_fat_ramdisk.py.exp
View file @
cda09727
...
...
@@ -13,3 +13,4 @@ getcwd: /foo_dir
True
getcwd: /
[(b'foo_file.txt', 32768, 0), (b'foo_dir', 16384, 0)]
ENOENT: True
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment