summaryrefslogtreecommitdiff
path: root/tests/extmod/vfs_fat_fileio2.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-06-10 20:14:16 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-06-10 20:34:38 +0300
commit85d809d1f4e35a511e0a56b3411126e05a31c01b (patch)
tree8debfecd0a6b83b6ba3d7e087058eec39a7b3c79 /tests/extmod/vfs_fat_fileio2.py
parenta2803b74f48849cb3a11fb492fee891044ecc1f4 (diff)
tests: Convert remaining "sys.exit()" to "raise SystemExit".
Diffstat (limited to 'tests/extmod/vfs_fat_fileio2.py')
-rw-r--r--tests/extmod/vfs_fat_fileio2.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/extmod/vfs_fat_fileio2.py b/tests/extmod/vfs_fat_fileio2.py
index b2a0ba70f..b5adb75c9 100644
--- a/tests/extmod/vfs_fat_fileio2.py
+++ b/tests/extmod/vfs_fat_fileio2.py
@@ -1,4 +1,3 @@
-import sys
try:
import uerrno
try:
@@ -8,13 +7,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:
@@ -46,7 +45,7 @@ try:
bdev = RAMFS(50)
except MemoryError:
print("SKIP")
- sys.exit()
+ raise SystemExit
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev)