tests/cpydiff: Add test for array constructor with overflowing value.
This commit is contained in:
parent
3ab8806c0d
commit
c4ed17ff34
|
@ -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)
|
Loading…
Reference in New Issue