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:
Damien George 2019-10-18 19:26:30 +11:00
parent 709136e844
commit 7a49fc387c

View File

@ -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))