circuitpython/tests/micropython/heapalloc_fail_bytearray.py.exp
Damien George eb1f81b209 tests/micropython: Add some tests for failed heap allocation.
This adds tests for some locations in the code where a memory allocation
should raise an exception.
2019-04-18 14:34:12 +10:00

12 lines
365 B
Plaintext

MemoryError: bytearray create
MemoryError: bytearray create from bytes
MemoryError: bytearray create from iter
MemoryError: bytearray.__add__
MemoryError: bytearray.__iadd__
bytearray(b'\x00\x00\x00\x00')
MemoryError: bytearray.append
MemoryError: bytearray.extend
MemoryError: bytearray subscr get
MemoryError: bytearray subscr grow
bytearray(b'\x00\x00\x00\x00')