Commit f9fa20b2 authored by Guido van Rossum's avatar Guido van Rossum

Pass optional arguments (globals(), locals(), []) to __import__() so

it will run as package test, e.g. this will run the test suite:

    import test.regrtest
    test.regrtest.main()
parent 0c819458
......@@ -133,7 +133,7 @@ def runtest(test, generate, verbose):
if cfp:
sys.stdout = cfp
print test # Output file starts with test name
__import__(test)
__import__(test, globals(), locals(), [])
finally:
sys.stdout = save_stdout
except ImportError, msg:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment