mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests/micropython: Fully unlink nested list in extreme exc test.
To make sure there are no dangling references to the lists, and the GC can reclaim heap memory. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -126,8 +126,8 @@ def main():
|
|||||||
)
|
)
|
||||||
except Exception as er:
|
except Exception as er:
|
||||||
e = er
|
e = er
|
||||||
lst[0][0] = None
|
while lst:
|
||||||
lst = None
|
lst[0], lst = None, lst[0] # unlink lists to free up heap
|
||||||
print(repr(e)[:10])
|
print(repr(e)[:10])
|
||||||
|
|
||||||
# raise a deep exception with the heap locked
|
# raise a deep exception with the heap locked
|
||||||
|
|||||||
Reference in New Issue
Block a user