Skip to content

Commit c25667f

Browse files
AJMansfielddpgeorge
authored andcommitted
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 micropython#18061 and micropython#18481 on all platforms. Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
1 parent 8406126 commit c25667f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/basics/builtin_help.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
help(micropython) # help for a module
1515
help('modules') # list available modules
1616

17+
class A:
18+
x = 1
19+
y = 2
20+
del x
21+
help(A)
22+
1723
print('done') # so last bit of output is predictable

0 commit comments

Comments
 (0)