summaryrefslogtreecommitdiffstatshomepage
path: root/tests/misc/non_compliant.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/non_compliant.py')
-rw-r--r--tests/misc/non_compliant.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/misc/non_compliant.py b/tests/misc/non_compliant.py
index ba2dd15c6a..1157ff8b29 100644
--- a/tests/misc/non_compliant.py
+++ b/tests/misc/non_compliant.py
@@ -1,6 +1,7 @@
# tests for things that are not implemented, or have non-compliant behaviour
import array
+import ustruct
# array deletion not implemented
try:
@@ -87,3 +88,9 @@ try:
del [][2:3:4]
except NotImplementedError:
print('NotImplementedError')
+
+# struct pack with too many args, not checked by uPy
+print(ustruct.pack('bb', 1, 2, 3))
+
+# struct pack with too few args, not checked by uPy
+print(ustruct.pack('bb', 1))