Commit 91359c86 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/struct*: Make skippable.

parent de9cd00b
try:
import ustruct as struct
except:
import struct
try:
import struct
except ImportError:
import sys
print("SKIP")
sys.exit()
print(struct.calcsize("<bI"))
print(struct.unpack("<bI", b"\x80\0\0\x01\0"))
print(struct.calcsize(">bI"))
......
......@@ -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''))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment