From 86c7507233929366ff17c9666200a33123491a8e Mon Sep 17 00:00:00 2001 From: Rami Ali Date: Tue, 7 Feb 2017 15:55:37 +1100 Subject: tests/cpydiff: Add initial set of tests for uPy-CPython differences. These tests are intended to fail, as they provide a programatic record of differences between uPy and CPython. They also contain a special comment at the start of the file which has meta-data describing the difference, including known causes and known workarounds. --- tests/cpydiff/modules_struct_manyargs.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/cpydiff/modules_struct_manyargs.py (limited to 'tests/cpydiff/modules_struct_manyargs.py') diff --git a/tests/cpydiff/modules_struct_manyargs.py b/tests/cpydiff/modules_struct_manyargs.py new file mode 100644 index 000000000..cdbb5c672 --- /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') -- cgit v1.2.3