mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
tests/struct*: Make skippable.
This commit is contained in:
@@ -3,7 +3,12 @@
|
||||
try:
|
||||
import ustruct as struct
|
||||
except:
|
||||
import struct
|
||||
try:
|
||||
import struct
|
||||
except ImportError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
print(struct.calcsize('0s'))
|
||||
print(struct.unpack('0s', b''))
|
||||
|
||||
Reference in New Issue
Block a user