2009-08-27 20:52:35 -03:00
|
|
|
"""Run Python's standard test suite using importlib.__import__.
|
|
|
|
|
2009-08-30 05:39:57 -03:00
|
|
|
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.
|
|
|
|
|
2009-08-27 20:52:35 -03:00
|
|
|
"""
|
|
|
|
import importlib
|
|
|
|
import sys
|
|
|
|
from test import regrtest
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
__builtins__.__import__ = importlib.__import__
|
2012-04-20 13:51:44 -03:00
|
|
|
sys.path_importer_cache.clear()
|
2009-08-27 20:52:35 -03:00
|
|
|
|
2009-08-30 16:44:32 -03:00
|
|
|
regrtest.main(quiet=True, verbose2=True)
|