From c25667f6a9de7b85cede4eb651cb5195c62eef80 Mon Sep 17 00:00:00 2001 From: Anson Mansfield Date: Fri, 5 Dec 2025 15:25:23 -0500 Subject: [PATCH] tests/basics/builtin_help.py: Test correct handling of deleted entries. This test reproduces the bug that gave rise to the esp32 segfaults in issues #18061 and #18481 on all platforms. Signed-off-by: Anson Mansfield --- tests/basics/builtin_help.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/basics/builtin_help.py b/tests/basics/builtin_help.py index 6ec39653fe..3d4e4f26bd 100644 --- a/tests/basics/builtin_help.py +++ b/tests/basics/builtin_help.py @@ -14,4 +14,10 @@ import micropython help(micropython) # help for a module help('modules') # list available modules +class A: + x = 1 + y = 2 + del x +help(A) + print('done') # so last bit of output is predictable