tests/extmod/vfs_fat_more: Make skippable is uos is not available.

Fixes Zephyr tests.
This commit is contained in:
Paul Sokolovsky 2017-05-13 14:13:24 +03:00
parent cda09727b4
commit 054a381d7c

View File

@ -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: