diff options
| author | Paul Sokolovsky | 2016-12-19 19:40:43 +0300 |
|---|---|---|
| committer | Paul Sokolovsky | 2016-12-19 19:41:12 +0300 |
| commit | 91359c86900ea664a8ad4fefad22b630bd714e2d (patch) | |
| tree | 8c993cfb5309448c220b6bc7c572f25904b9e756 /tests/basics/struct1.py | |
| parent | de9cd00b39fbd66279dda69bc642ac2f3c459fa1 (diff) | |
tests/struct*: Make skippable.
Diffstat (limited to 'tests/basics/struct1.py')
| -rw-r--r-- | tests/basics/struct1.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/basics/struct1.py b/tests/basics/struct1.py index b53a9c8bc..0eae9e3b4 100644 --- a/tests/basics/struct1.py +++ b/tests/basics/struct1.py @@ -1,7 +1,13 @@ 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")) |
