cpython/Lib/test/test_importlib/regrtest.py
Victor Stinner 3aac0adfe0 Cleanup regrtest "main()" function
* Rename libregrtest.main_in_temp_cwd() to libregrtest.main()
* Add regrtest.main_in_temp_cwd() alias to libregrtest.main()
* Move old main_in_temp_cwd() code into libregrtest.Regrtest.main()
* Update multiple scripts to call libregrtest.main()
2016-03-24 17:53:20 +01:00

17 lines
522 B
Python

"""Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
"""
import importlib
import sys
from test import libregrtest
if __name__ == '__main__':
__builtins__.__import__ = importlib.__import__
sys.path_importer_cache.clear()
libregrtest.main(quiet=True, verbose2=True)