tests/basics/builtin_dir.py: Look for "version" in dir(sys).

Because "version" will always be there, but "exit" may not.
pull/1/head
Damien George 2019-10-18 19:26:30 +11:00
parent 709136e844
commit 7a49fc387c
1 changed files with 1 additions and 1 deletions

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