summaryrefslogtreecommitdiff
path: root/tests/basics/struct2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/struct2.py')
-rw-r--r--tests/basics/struct2.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/basics/struct2.py b/tests/basics/struct2.py
index ceb067776..9cbf5ad86 100644
--- a/tests/basics/struct2.py
+++ b/tests/basics/struct2.py
@@ -1,13 +1,10 @@
-# test ustruct with a count specified before the type
+# test struct with a count specified before the type
try:
- import ustruct as struct
-except:
- try:
- import struct
- except ImportError:
- print("SKIP")
- raise SystemExit
+ import struct
+except ImportError:
+ print("SKIP")
+ raise SystemExit
print(struct.calcsize('0s'))
print(struct.unpack('0s', b''))