mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests/basics/builtin_dir: Add test for dir() of a type.
This commit is contained in:
@@ -7,6 +7,9 @@ print('__name__' in dir())
|
||||
import sys
|
||||
print('platform' in dir(sys))
|
||||
|
||||
# dir of type
|
||||
print('append' in dir(list))
|
||||
|
||||
class Foo:
|
||||
def __init__(self):
|
||||
self.x = 1
|
||||
|
||||
Reference in New Issue
Block a user