From fa486a2d5329cf199dcf88cc16c4a98e7942a962 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 7 Apr 1995 09:04:01 +0000 Subject: [PATCH] call test() when run as script --- Lib/newimp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/newimp.py b/Lib/newimp.py index 24d082df835..614ce941e29 100755 --- a/Lib/newimp.py +++ b/Lib/newimp.py @@ -954,3 +954,6 @@ def test(number=0): __builtin__.__import__ = wasImport else: del __builtin__.__import__ + +if __name__ == '__main__': + test()