mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
tests/basics: Convert "sys.exit()" to "raise SystemExit".
This commit is contained in:
@@ -4,9 +4,8 @@ except:
|
||||
try:
|
||||
import struct
|
||||
except ImportError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
raise SystemExit
|
||||
|
||||
print(struct.calcsize("<bI"))
|
||||
print(struct.unpack("<bI", b"\x80\0\0\x01\0"))
|
||||
|
||||
Reference in New Issue
Block a user