diff options
| author | Anson Mansfield <amansfield@mantaro.com> | 2025-12-05 15:25:23 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-12-07 18:22:56 +1100 |
| commit | c25667f6a9de7b85cede4eb651cb5195c62eef80 (patch) | |
| tree | 38a9cda33ece129c5c48601e68c404c9b64f2f85 | |
| parent | 84061266ece6ea9fae7da45e47cc6e1c51182c8a (diff) | |
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 <amansfield@mantaro.com>
| -rw-r--r-- | tests/basics/builtin_help.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/builtin_help.py b/tests/basics/builtin_help.py index 6ec39653f..3d4e4f26b 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 |
