Commit Graph

2 Commits

Author SHA1 Message Date
Damien George 6f96d260e6 webassembly/variants/pyscript: Enable weakref module and add tests.
The webassembly port needs some additional weakref tests due to the fact
that garbage collection only happens when Python execution finishes and
JavaScript resumes.

The `tests/ports/webassembly/heap_expand.py` expected output also needs to
be updated because the amount of GC heap got smaller (weakref WTB takes
some of the available RAM).

Signed-off-by: Damien George <damien@micropython.org>
2026-03-22 23:13:26 +11:00
Damien George c91d09a00d tests/basics: Add tests for weakref.ref and weakref.finalize.
Signed-off-by: Damien George <damien@micropython.org>
2026-03-22 23:06:01 +11:00