mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
tests/basics: Convert "sys.exit()" to "raise SystemExit".
This commit is contained in:
@@ -2,8 +2,7 @@ try:
|
||||
str.partition
|
||||
except AttributeError:
|
||||
print("SKIP")
|
||||
import sys
|
||||
sys.exit()
|
||||
raise SystemExit
|
||||
|
||||
print("asdf".partition('g'))
|
||||
print("asdf".partition('a'))
|
||||
|
||||
Reference in New Issue
Block a user