tests/extmod/vfs_fat_more: Make skippable is uos is not available.
Fixes Zephyr tests.
This commit is contained in:
parent
cda09727b4
commit
054a381d7c
@ -1,10 +1,15 @@
|
|||||||
import sys
|
import sys
|
||||||
import uerrno
|
import uerrno
|
||||||
try:
|
try:
|
||||||
import uos_vfs as uos
|
try:
|
||||||
open = uos.vfs_open
|
import uos_vfs as uos
|
||||||
|
open = uos.vfs_open
|
||||||
|
except ImportError:
|
||||||
|
import uos
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import uos
|
print("SKIP")
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
uos.VfsFat
|
uos.VfsFat
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user