summaryrefslogtreecommitdiff
path: root/tests/cpydiff/module_array_constructor.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpydiff/module_array_constructor.py')
-rw-r--r--tests/cpydiff/module_array_constructor.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cpydiff/module_array_constructor.py b/tests/cpydiff/module_array_constructor.py
new file mode 100644
index 000000000..08cf2ef2d
--- /dev/null
+++ b/tests/cpydiff/module_array_constructor.py
@@ -0,0 +1,10 @@
+"""
+categories: Modules,array
+description: Overflow checking is not implemented
+cause: MicroPython implements implicit truncation in order to reduce code size and execution time
+workaround: If CPython compatibility is needed then mask the value explicitly
+"""
+import array
+
+a = array.array("b", [257])
+print(a)