summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/vfs_fat_oldproto.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/vfs_fat_oldproto.py')
-rw-r--r--tests/extmod/vfs_fat_oldproto.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/extmod/vfs_fat_oldproto.py b/tests/extmod/vfs_fat_oldproto.py
index 3e66758c36..ef4f1da78e 100644
--- a/tests/extmod/vfs_fat_oldproto.py
+++ b/tests/extmod/vfs_fat_oldproto.py
@@ -1,4 +1,3 @@
-import sys
try:
import uerrno
try:
@@ -7,13 +6,13 @@ try:
import uos
except ImportError:
print("SKIP")
- sys.exit()
+ raise SystemExit
try:
uos.VfsFat
except AttributeError:
print("SKIP")
- sys.exit()
+ raise SystemExit
class RAMFS_OLD:
@@ -43,7 +42,7 @@ try:
bdev = RAMFS_OLD(50)
except MemoryError:
print("SKIP")
- sys.exit()
+ raise SystemExit
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev)