tests/basics/builtin_dir.py: Look for "version" in dir(sys).
Because "version" will always be there, but "exit" may not.
This commit is contained in:
parent
709136e844
commit
7a49fc387c
@ -5,7 +5,7 @@ print('__name__' in dir())
|
||||
|
||||
# dir of module
|
||||
import sys
|
||||
print('exit' in dir(sys))
|
||||
print('version' in dir(sys))
|
||||
|
||||
# dir of type
|
||||
print('append' in dir(list))
|
||||
|
Loading…
Reference in New Issue
Block a user