micropython: add micropython component
This commit is contained in:
17
components/language/micropython/tests/basics/builtin_help.py
Normal file
17
components/language/micropython/tests/basics/builtin_help.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# test builtin help function
|
||||
|
||||
try:
|
||||
help
|
||||
except NameError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
help() # no args
|
||||
help(help) # help for a function
|
||||
help(int) # help for a class
|
||||
help(1) # help for an instance
|
||||
import micropython
|
||||
help(micropython) # help for a module
|
||||
help('modules') # list available modules
|
||||
|
||||
print('done') # so last bit of output is predictable
|
Reference in New Issue
Block a user