tests/basics/builtin_dir: Add test for dir() of a type.
This commit is contained in:
parent
49bf7617d0
commit
d291007fea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user