diff --git a/tests/extmod/vfs_fat_more.py b/tests/extmod/vfs_fat_more.py index 6c2df528fb..dacb215535 100644 --- a/tests/extmod/vfs_fat_more.py +++ b/tests/extmod/vfs_fat_more.py @@ -1,10 +1,15 @@ import sys import uerrno try: - import uos_vfs as uos - open = uos.vfs_open + 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: