From 054a381d7c9f3f5b706475a934299c541efdd746 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 13 May 2017 14:13:24 +0300 Subject: [PATCH] tests/extmod/vfs_fat_more: Make skippable is uos is not available. Fixes Zephyr tests. --- tests/extmod/vfs_fat_more.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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: