summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff/modules_struct_manyargs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpydiff/modules_struct_manyargs.py')
-rw-r--r--tests/cpydiff/modules_struct_manyargs.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cpydiff/modules_struct_manyargs.py b/tests/cpydiff/modules_struct_manyargs.py
new file mode 100644
index 0000000000..cdbb5c672c
--- /dev/null
+++ b/tests/cpydiff/modules_struct_manyargs.py
@@ -0,0 +1,12 @@
+"""
+categories: Modules,struct
+description: Struct pack with too many args, not checked by uPy
+cause: Unknown
+workaround: Unknown
+"""
+import struct
+try:
+ print(struct.pack('bb', 1, 2, 3))
+ print('Should not get here')
+except:
+ print('struct.error')