blob: a5be11fd4ee5ddd87ce36d90723b5a00338fb225 [file] [log] [blame]
Brett Cannon5e129db2009-08-27 23:52:35 +00001"""Run Python's standard test suite using importlib.__import__.
2
Brett Cannon12c3fc92009-08-30 08:39:57 +00003Tests known to fail because of assumptions that importlib (properly)
4invalidates are automatically skipped if the entire test suite is run.
5Otherwise all command-line options valid for test.regrtest are also valid for
6this script.
7
Brett Cannon5e129db2009-08-27 23:52:35 +00008"""
9import importlib
10import sys
11from test import regrtest
12
13if __name__ == '__main__':
14 __builtins__.__import__ = importlib.__import__
Brett Cannon91900ea2012-04-20 12:51:44 -040015 sys.path_importer_cache.clear()
Brett Cannon5e129db2009-08-27 23:52:35 +000016
Brett Cannonce7d4cb2009-08-30 19:44:32 +000017 regrtest.main(quiet=True, verbose2=True)