mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
call test() when run as script
This commit is contained in:
parent
5232590bf1
commit
fa486a2d53
1 changed files with 3 additions and 0 deletions
|
@ -954,3 +954,6 @@ def test(number=0):
|
|||
__builtin__.__import__ = wasImport
|
||||
else:
|
||||
del __builtin__.__import__
|
||||
|
||||
if __name__ == '__main__':
|
||||
test()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue