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