summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_fail_bytearray.py.exp
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-04-18 14:34:12 +1000
committerDamien George <damien.p.george@gmail.com>2019-04-18 14:34:12 +1000
commiteb1f81b209f0d13059ebb4fa2ed105a0d6a4b0d0 (patch)
treebe61d020fc09161fc856d3f1516495219b647978 /tests/micropython/heapalloc_fail_bytearray.py.exp
parent4ce0091449052daca592f852a31eece074d34a57 (diff)
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.
Diffstat (limited to 'tests/micropython/heapalloc_fail_bytearray.py.exp')
-rw-r--r--tests/micropython/heapalloc_fail_bytearray.py.exp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/micropython/heapalloc_fail_bytearray.py.exp b/tests/micropython/heapalloc_fail_bytearray.py.exp
new file mode 100644
index 000000000..57f6202f5
--- /dev/null
+++ b/tests/micropython/heapalloc_fail_bytearray.py.exp
@@ -0,0 +1,11 @@
+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')