Files
micropython/tests/basics/weakref_callback_exception.py.exp
T
Damien George 2cca3481f2 tests/basics: Add test for weakref having exception in callback.
Needs a native exp file because native code doesn't print line numbers in
the traceback.

Signed-off-by: Damien George <damien@micropython.org>
2026-03-22 23:06:05 +11:00

13 lines
473 B
Plaintext

test ref with exception in the callback
Unhandled exception in weakref callback:
Traceback (most recent call last):
File "\.\+weakref_callback_exception.py", line 21, in callback
ValueError: ('weakref callback', (<ref>,))
collect done
test finalize with exception in the callback
Unhandled exception in weakref callback:
Traceback (most recent call last):
File "\.\+weakref_callback_exception.py", line 21, in callback
ValueError: ('weakref callback', ())
collect done