mirror of
https://github.com/python/cpython.git
synced 2026-02-23 23:50:54 +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 unloadFull(mod):
|
|||
__builtin__.__import__ = wasImport
|
||||
else:
|
||||
del __builtin__.__import__
|
||||
|
||||
if __name__ == '__main__':
|
||||
test()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue