We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e53fb1b commit 719f8c0Copy full SHA for 719f8c0
1 file changed
tests/basics/struct1.py
@@ -62,6 +62,12 @@
62
except TypeError:
63
print('TypeError')
64
65
+# make sure that unknown types are detected
66
+try:
67
+ struct.pack("z", 1)
68
+except:
69
+ print("Unknown type")
70
+
71
# Initially repitition counters were supported only for strings,
72
# but later were implemented for all.
73
print(struct.unpack("<3B2h", b"foo\x12\x34\xff\xff"))
0 commit comments