mirror of
https://github.com/micropython/micropython.git
synced 2025-08-24 11:30:31 +02: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:
|
||||
e = er
|
||||
lst[0][0] = None
|
||||
lst = None
|
||||
while lst:
|
||||
lst[0], lst = None, lst[0] # unlink lists to free up heap
|
||||
print(repr(e)[:10])
|
||||
|
||||
# raise a deep exception with the heap locked
|
||||
|
Reference in New Issue
Block a user