Commit 499ea8b2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/extmod/vfs_fat_fileio*: Improve skippability.

Should be skipped on missing uso, uerrno modules.
parent b099aeb3
import sys
import uerrno
try:
import uos_vfs as uos
open = uos.vfs_open
import uerrno
try:
import uos_vfs as uos
open = uos.vfs_open
except ImportError:
import uos
except ImportError:
import uos
print("SKIP")
sys.exit()
try:
uos.VfsFat
except AttributeError:
......
import sys
import uerrno
try:
import uos_vfs as uos
open = uos.vfs_open
import uerrno
try:
import uos_vfs as uos
open = uos.vfs_open
except ImportError:
import uos
except ImportError:
import uos
print("SKIP")
sys.exit()
try:
uos.VfsFat
except AttributeError:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment