diff options
Diffstat (limited to 'tests/basics/struct_endian.py')
-rw-r--r-- | tests/basics/struct_endian.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/basics/struct_endian.py b/tests/basics/struct_endian.py index 91f5539c1..6eabda018 100644 --- a/tests/basics/struct_endian.py +++ b/tests/basics/struct_endian.py @@ -1,13 +1,10 @@ -# test ustruct and endian specific things +# test struct and endian specific things try: - import ustruct as struct -except: - try: - import struct - except ImportError: - print("SKIP") - raise SystemExit + import struct +except ImportError: + print("SKIP") + raise SystemExit # unpack/unpack_from with unaligned native type buf = b'0123456789' |